Click here to Skip to main content
14,733,542 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
page_clientvalidate() function is not working in chrome browser, but it is working fine in IE. how to handle this problem. please suggest me how to resolve this issue. my submit button controls given below.

<asp:Button CssClass="form_button" ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click"
TabIndex="16" UseSubmitBehavior="false" CausesValidation="false" ValidationGroup="gpELS"
                                    OnClientClick="if (!ValidateMe()) { return false; }" />


And Java Script function is.

function ValidateMe() {         
          var ok = Page_ClientValidate();      
          if (ok) {            
              var confirmResult = confirm("Are you sure you want to generate this ELS?");
              return confirmResult;
          }
          else {
              Page_BlockSubmit = false;
          }
      }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900