ASP.NET Validation in DepthFirst Faved : Mar 20 2008 by mohitFaved : 1 time with noteViewed : 3 timesFave It!
Faves for this Web page
- mohit - Mar 20 2008 | asp.net, development, c#, validation, .net, programming
The problem with calling Validate in Page_Load is that your controls may not be ready to be validated (i.e. they need to be Loaded before they are ready to be validated).
Quoted: One potentially confusing thing about this timing is that the validators will not have been evaluated at the time Page_Load is triggered. The benefit of this is that it gives you a chance to programmatically change property values affecting the validity of the page, such as enabling or disabling certain validators.
...
If this timing is not to your liking and you prefer to evaluate everything in Page_Load, you can do this by explicitly triggering the validation during this event by calling Page.Validate.
Already a user? Sign In
Add a Fave for this Web page
- What happens when I press Publish?
- Your Fave for this Web page gets shared with the Faves community. You can access it at any time by selecting "My Faves" from the menu above.
- Why do you ask for my email address?
- We use your email address to create an account, so you can easily find your Fave again at a later time.
Related Content from Around Faves
javascript
- 3 FaversViewed: 56 Times
- mippe - Oct 23 20084 FaversViewed: 5 Times
- relia - Oct 11 20073 FaversViewed: 37 Times
validation
-
4 FaversViewed: 15 TimesQuoted: Embedding Flash while supporting web standards.
- sasha_chien - May 06 20081 FaverViewed: 2 Times
- mohit - Feb 29 20082 FaversViewed: 17 Times
