ASP.NET button inside bootstrap modal not triggering click event

后端 未结 2 350
生来不讨喜
生来不讨喜 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:17

    I'd like to add another point here. I faced this issue because my final rendered modal dialogs were placed outside the WebForms

    tag, and using the UseSumbitBehavior="false" did not solve my problem. Moving the modal dialog divs inside the form solved the issue.

    $("div.modalForm").appendTo($("form:first"));
    

提交回复
热议问题