ASP.NET options.clientSubmit button set to false

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?

+5
source share
4 answers

It could be:

, Validators , ValidationGroup false ( , - ). , , .

, , ValidationGroup Validators, ( , ). , .

+3

CausesValidation = "False" , . , - , .

+2

-, ?

, .Net , , options.clientSubmit : S

:

<script type="text/javascript">
    $(document).ready(function() {
        $('.prevDblSubmit').preventDoubleSubmit();
    })
</script>
+1

, , : resourcekey = "btnSubmitResource1", . . : ASP.NET: vs ?

0

All Articles