I have an ASP.NET button that sometimes does not return. I checked this in the IE developer and found that when the button does not work, it is options.clientSubmitset to false in the functionWebForm_DoPostBackWithOptions()
My button code
<asp:Button
runat="server"
ID="btnSubmit"
CssClass="button"
OnClick="btnSubmit_Click"
meta:resourcekey="btnSubmitResource1" />
Inside WebForm_DoPostBackWithOptions(options)
if (options.clientSubmit) {
__doPostBack(options.eventTarget, options.eventArgument);
}
Can someone tell me why the button sometimes works and sometimes not? What should I do so that it always works?
source
share