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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:15:58+00:00 2026-06-16T02:15:58+00:00

I checked SO for a solution but I didn’t come to anything useful, they

  • 0

I checked SO for a solution but I didn’t come to anything useful, they were either unanswered like this orphan link or irrelevant. Now I ask it here:

Is it possible to make validators show their messages on first load of the page?

I have a couple of validators (required, custom, range …) on my page, and I have grouped them. I want the required validation group show their messages on first load (when !page.IsPostBack) so my customer can see what is mandotary and what is not at the first glance.

  • 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-16T02:15:59+00:00Added an answer on June 16, 2026 at 2:15 am

    Following code should work for your requirement.

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            // for all validators to fire, first time
            Page.Validate();
            // Or Only validators under a specific group will fire
            Page.Validate("ValidationGroupName");
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I checked this link of S.O : Pop Images like Google Images And tried
Already checked exisitng questions for this, but didn't find an exact match. My aim
I checked this website and I didn't find any solution. I was made a
I have checked different questions in this and in other forums, but I didn't
This may be a common problem but I'm struggling to find a solution that
I've tried to convert a VS2008 solution to VS2010, but it didn't really work.
I have a solution checked into TFS. Looking in the source control explorer I
I added a project to a solution checked into a team foundation server solution
After some use Visual Studio 2008 when opening a solution that is checked into
I checked the documentation, but can't seem to find what I'm looking for. I

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.