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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:52:30+00:00 2026-06-17T07:52:30+00:00

We have an ASP.Net webforms page. On the page load event, the page fills

  • 0

We have an ASP.Net webforms page. On the page load event, the page fills some inputs with data. Then blocks them so a user cannot edit them. Unfortunately some data appears to be wrong, so the ASP.Net validators won’t allow the user to post the form.

There was a decision to unblock the invalid inputs to allow users to edit them. We have a number of ASP.Net validators on the page, including custom validators. Can I use these validators to validate data in the OnLoad event and unblock the invalid fields or do I need to unblock them manually checking every field? What is the best way to achieve the result?

  • 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-17T07:52:31+00:00Added an answer on June 17, 2026 at 7:52 am

    Since there is no code, I’m only guessing this should work with your logic. Basically, after you set the value for all of the fields, you can run Page.Validate() and set the visibilities based on the validity of the data.

    // set all your values
    _textBox1.Text = "Some Value 1";
    _textBox2.Text = "Some Value 2";
    Page.Validate();
    _textBox1.Enabled = !_textBox1RangeVal.IsValid;
    _textBox2.Enabled = !_textBox2RequiredFieldVal.IsValid;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net webforms page in which I'm using the jqGrid component. The
I have a hybrid ASP.NET WebForms/MVC project. In my Master Page, I have a
I have an ASP.NET (webforms) page that renders MS-Excel back to the response stream
I have an ASP.net WebForms page that has a lot of content on the
I have an ASP.NET page with two instances of the same Web User Control
I would like to first load an ASP.NET page and then fire a server-side
I have a this asp.net page which upon first time load: 1: Make a
I have ASP.NET site. At one point postback is triggered and some data is
I have an ASP.NET Web Forms web site. It has a page inside of
I have a ASP.NET Webforms application that is being used with Motorola Tablets (Android

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.