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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.