Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

validation controls? 3

Status
Not open for further replies.

dhmfh

Programmer
Nov 28, 2005
69
GB
Hi Guys.

I have implemented validation controls to validate textboxes on my aspx page. I also have a submit button that will post the information into the database. If the user clicks submit before entering any information are the validation controls still run?
 
Why don't you try it and see what happens?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
If the button have CausesValidation set to TRUE then an 'page.validate()' instruction will be triggered. Also make sure that every validator control has 'ControlToValidate' property set.
 
Also, in ASP.NET 1.x, most validators won't fire if the input is blank. In 2.0, you need to set the appropriate property to make the validation fire on blank input.
 
>>In 2.0, you need to set the appropriate property to make the validation fire on blank input.

hi, what is the property name that will make the validators to fire even if there are no values (in .NET 2 ie)???

Known is handfull, Unknown is worldfull
 
It's "ValidateEmptyText" which only applies to CustomValidators.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top