ASP.NET button inside bootstrap modal not triggering click event

后端 未结 2 348
生来不讨喜
生来不讨喜 2020-12-30 06:14

I\'m working in Bootstrap modal in my asp.net site, modal is working fine but the button btnSaveImage inside modal footer is not firing click event, I also have a masterpage

2条回答
  •  太阳男子
    2020-12-30 07:07

    You can use the ASP Button like in your example

    
    

    just try the UseSubmitBehavior="false" like said skhurams and combine it with the data-dismiss="modal"

    
    

    this will close the modal and trigger the postback

提交回复
热议问题