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 974741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:28:54+00:00 2026-05-16T03:28:54+00:00

Is there a way to trigger the validation on the form on the first

  • 0

Is there a way to trigger the validation on the form on the first load? my form loads its data from the DB and the data could already be partially filled by the user – so i want to run the validation on the first load to show the user what he needs to fill and how much

i failed to mention it earlier – i need to perform the validation on the server side – not client side (all the validators i use have server side validation code as well) – and my attempts to call:

Page.Validate();
Page.Validate("My Validation Group");

both resulted in

Page.IsValid == true;

the full scenario is like this:
i have a very long form that stretch over several pages – the user is allowed to move between them and fill in the information – without validation getting in his way
then when he finish he clicks on a different button (that exists on all pages) and that page needs to validate the entire form – and if there is a problem jump the user to where the problem is – i coded all the validation checks into asp.net validation controls – and i whuld like to trigger those controls even if the user jumps to that page by pressing the validate button on a different page – the problem is that the move to that page is regarded as a NEW load of that page (in fact it is – and hence the validation fails to work)

  • 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-05-16T03:28:55+00:00Added an answer on May 16, 2026 at 3:28 am

    On the load of your page call for the method

    Page_ClientValidate();
    

    If you want to call it for a specific validationgroup call it like:

    Page_ClientValidate('somevalidationgroupname');
    

    If you want to retrieve the state of the page you can call

    Page_IsValid;
    

    Edit:

    Frankly it’s better to just use CSS to indicate which fields are required to be filled in. My former project used the client side validation approach when someone didn’t enter information the first time but went to other parts of the page and on a second time it was opened then it was made clear by client side validation.

    Perhaps it’s handy to talk with a usability expert on how to best accomplish things before making extra additions to your codebase ending up in decreased user experience.

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

Sidebar

Related Questions

Is there any way to trigger a reboot of the iPhone programmatically from within
Is there a way to trigger a beep/alarm/sound when my breakpoint is hit? I'm
In SQL Server 2005, is there a way for a trigger to find out
Is there a way to listen for a javascript function to exit? A trigger
In sql server 2005 , inside an update trigger is there a way to
Is there way in next piece of code to only get the first record?
is there way thats i can preselect an item when the page loads or
Group, I have a quick question? -Is there a way to trigger this onclick
Is there any way to convert the .nps profiler data captured by VisualVM to
I want to trigger one event on page load complete using javascript/jquery. Is there

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.