Steps to use Validation Control - ASP.NET

Describe the steps to use Validation Control.

1. Draw a validation control on a Web form.
2. Set the ControlToValidate property to the control you want to validate.
3. Specify the ControlToCompare property with CompareValidator control.
4. Specify error message to the validation control’s ErrorMessage property.
5. Specify error message to the validation control’s Text property if you want to display a message other than the message in the ErrorMessage property.
6. Draw a ValidationSummary control on the Web form to display the error messages from the validation controls in one place.
Types of validation controls are provided by ASP.NET
ASP.NET - Types of validation controls - 5 Types of validation control exists:...
What is state management in ASP.NET?
ASP.NET - What is state management in ASP.NET? - State management in ASP.NET can be classified into : Client-side state management, Server-side state management...
ASP.NET Client-side state management and Server-side state management
ASP.NET - Client-side state management and Server-side state management - Client-side state management: This maintains information on the client's machine using Cookies, View State, and Query Strings..
Post your comment