submit button not working RRS feed

  • Question

  • User364607740 posted

    Please provide me some hints how can I debug this error. It is making me mad, please help. My submit button is not working while pressing. When I checked from chrome debugger, showing error on the submit button.

    developer tools console ::

    ClientRegistration.aspx:233 Uncaught ReferenceError: Page_ClientValidate is not defined
        at HTMLInputElement.onclick (http://localhost:57101/content/ClientRegistration.aspx:233:335)onclick @ ClientRegistration.aspx:233
     <input type="button" name="ctl00$ContentPlaceHolder1$submit" value="Submit" onclick="if (!Page_ClientValidate()){ return false; } this.disabled = true; this.value = &#39;Saving...&#39;;__doPostBack(&#39;ctl00$ContentPlaceHolder1$submit&#39;,&#39;&#39;)" id="ContentPlaceHolder1_submit" class="input-submit" />

    My code ::

        <td colspan="2" class="t-right">
            <asp:Button ID="submit" class="input-submit" runat="server" Text="Submit" OnClick="submit_Click"
                OnClientClick="if (!Page_ClientValidate()){ return false; } this.disabled = true; this.value = 'Saving...';"
                UseSubmitBehavior="false" />

    When I remove the

    OnClientClick="if (!Page_ClientValidate()){ return false; } this.disabled = true; this.value = 'Saving...';" UseSubmitBehavior="false"

    my page is working. How can I debug and resolve this error? 

    Wednesday, November 9, 2016 6:39 AM

All replies

  • User527778624 posted


    Check the solutions, fixes in this site:


    Wednesday, November 9, 2016 8:19 AM
  • User347430248 posted

    Hi Scala,

    do you have required field validator control on page? if not try to add one.

    if you have that and then also you are getting this error then try to use the code mentioned below in your JavaScript.

            function validateThis() {
            if (typeof (Page_ClientValidate) === 'function') {
                var isPageValid = Page_ClientValidate('');
                if (isPageValid) {
                    alert("page valid");
                    return true;
            alert("page NOT valid");
            return false;

    This same error related question is already available on this forum. which was Answered. you can visit the it maybe solve your problem.

    Page_ClientValidate is undefined in formview [Answered]



    Thursday, November 10, 2016 12:26 AM