ASP.NET FAQS | |
Asp.Net validation controls are used to validate user input based on validation criteria. Validation controls can be used to address the following questions.
| |
ASP.NET validation controls validate data first on the client and then on the web server. If a client disables javascript on the browser then, client side validations are bypassed and validations are performed on the web server. | |
ASP.NET Validations Controls are
| |
| |
No, validation controls are not fired on the client side if javascript is disabled on the client browser. | |
By Setting CauseValidation button property to false | |
Let us assume we have a Page that collects user information like name, age, date of birth, gender with a submit and reset buttons. When I click the submit button the information filled on the form should be validated and saved to the database. If I click the reset button then all the controls on the webform should default to their initial values without validation happening.So you have to set the CausesValidation property of the reset button to false for the validation to be bypassed. Other wise you will not be able to post back the page to the server. | |
ASP.NET Custom Validator is used to perform complex types of validation not provided by the standard validation control, use a CustomValidator control and write code to perform the validation on the server side and optionally on the client side. | |
We use Page.IsValid property to determine if all the validations have succeeded. For this property to return true, all validation server controls in the current validation group must validate successfully. | |
Call Page.Validate() method. When this method is invoked, it iterates through the validation controls contained in the ValidatorCollection object associated with the Page.Validators property and invokes the validation logic for each validation control in the current validation group. | |
ASP.NET FAQS |
ASP.NET Validation Controls FAQS
ASP.NET Validation Controls FAQS page 1
Posted by
Ramu