I have a ASP.NET button which sometimes does not post back. I checked this in IE developer and found that when the button does not work options.clientSubmit
is set to false in the function WebForm_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 anyone tell me why the button sometimes works and sometimes does not? what should I do to make it work always?