Types of validation controls are provided by ASP.NET

How many types of validation controls are provided by ASP.NET? Explain them.

5 Types of validation control exists:

RequiredFieldValidator:
To enforce a user to fill a particular field before submitting the form. This is done when the field is a mandatory input .e.g.: username & password.

RangeValidator:
To validate if the user input fits within a range of lower and upper limits.

CompareValidator:
This is to compare the user input against other existing value.

RegularExpressionValidator:
This is to ensure that the use input is as per the expected pattern. e.g.: Phone number, emails

CustomValidator:
Custom validator allows developers to create their own validators based on their logics. This could be a mix of other validators.
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..
What is Caching in ASP.NET?
ASP.NET - What is Caching in ASP.NET? - Caching technique allows to store/cache page output or application data on the client....
Post your comment