Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7793025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:21:23+00:00 2026-06-01T22:21:23+00:00

I am using Page_ClientValidate for validations. It returns false even there is no invalid

  • 0

I am using Page_ClientValidate for validations.

It returns false even there is no invalid inputs.

  function PageValid() {

            var valid = Page_ClientValidate('save');

            alert(valid);

            if (valid == true) {

                $('.mydiv').hide();
            }

        }

Here ‘save’ is the validation group. Please help me guys.

Thanks,
Rajbir

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:21:25+00:00Added an answer on June 1, 2026 at 10:21 pm

    Go through ASP.NET Validation in Depth and Java script page validation Page_clientValidate()

    The Job of this function is to check the page is it valid if any of
    the validator is not valid this function return false otherwise it
    return true.

    if (Page_ClientValidate()) {
    
    // Page is Ok
    
    //Submit it To The Server
    
    return true
    } else {
    
    //Page is Not Valid
    
    //Return False
    
    return false
    
    }
    

    It may possible that you are missing about validation settings on your validator or some other error on js.

    You can do manual validation as:

    <script type="text/javascript" language="javascript">
        /* Manual client-side validation of Validator Groups */
        function fnJSOnFormSubmit() {
            var isGrpOneValid = Page_ClientValidate("valGrpOne");
            var isGrpTwoValid = Page_ClientValidate("valGrpTwo");
    
            var i;
            for (i = 0; i < Page_Validators.length; i++) { 
                ValidatorValidate(Page_Validators[i]); //this forces validation in all groups
            }
    
            //display all summaries.
            for (i = 0; i < Page_ValidationSummaries.length; i++) {
                summary = Page_ValidationSummaries[i];
                //does this summary need to be displayed?
                if (fnJSDisplaySummary(summary.validationGroup)) {
                    summary.style.display = ""; //"none"; "inline";
                }
            }
    
            if (isGrpOneValid && isGrpTwoValid)
                return true; //postback only when BOTH validations pass.
            else
                return false;
        }
    

    Ref:
    Page_ClientValidate() with multiple ValidationGroups – how to show multiple summaries simultaneously?
    Page_ClientValidate is validating multiple times.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Page.Isvalid function in my web page.I have two buttons in my
I am using this javascript function to show different popups if location count varies.
I Have a common method that displays alert message using page.clientScript. But later on
I know there are some advantages in using page forwarding as it is the
I can get particular validator using Page.Validators[0] Can anyone tell me is there a
I've a web method that has been called up using page methods. Assert function
( This is through Grease/Tampermonkey ). Here's a print function for a kiosk using
I am using page.registerstartupscript in my code behind C#. Its like this: string item1=category1;
I have a page using something along the lines of <meta http-equiv=refresh content=0;url=http://example.com/ />
I'm using google page speed and it's telling me my css is inefficient... Very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.