ASP.NET validation controls define an important role in validating the user input data. Whenever the user gives the input, it must always be validated before sending it across to various layers of an application. If we get the user input with validation, then chances are that we are sending the wrong data. So, validation is a good idea to do whenever we are taking input from the user. There are the following two types of validation in ASP.NET,
Client-Side Validation
Server-Side Validation
Client-Side Validation
When validation is done on the client browser, then it is known as Client-Side Validation. We use JavaScript to do the Client-Side Validation. Server-Side Validation When validation occurs on the server, then it is known as Server-Side Validation. Server-Side Validation is a secure form of validation. The main advantage of Server-Side Validation is if the user somehow bypasses the Client-Side Validation, we can still catch the problem on server-side. The following are the Validation Controls in ASP.NET,
<> RequiredFieldValidator Control
<> CompareValidator Control
<> RangeValidator Control
<> RegularExpressionValidator Control
<> CustomFieldValidator Control
<> ValidationSummary
Posted Date:- 2021-09-17 08:22:46
What is the difference between session object and application object?
What is a multilingual website?
What is the REST architecture?
What is Round Trip in ASP.NET?
What does “PostBack†mean in ASP.NET?
Describe application state management in ASP.NET?
What are the different types of constructors in c#?
Which would be the right framework to be used ASP.NET MVC or ASP.NET Web API?
What is authentication and authorization in ASP.NET?
How long the items in ViewState exists?
What is the difference between namespace and assembly?
Where the viewstate is stored after the page postback?
Where the viewstate is stored after the page postback?
What are the components of the web form in ASP.NET?
What are the various validators in ASP.NET?
What is the difference between Response.Redirect and Server.Transfer?
Why do we use Response.Output.Write()?
How is the Startup class useful in ASP.NET?
How is the Program class useful in ASP.NET?
What is the NuGet package manager?
What is the MVC pattern in ASP.NET?
What are the different modes for the Session state in ASP.NET?
What is Neutral Culture, Culture, and Language?
What is the Web.config file in ASP?
What are the concepts of Globalization and Localization in .NET?
What is the difference between client-side and server-side validations?
How many navigation controls are in ASP.NET?
What is the difference between Hyperlink and LinkButton?
What are server controls in ASP.NET?
When do you choose classic ASP.NET over ASP.NET Core?