ASP.NET Basics

HTML Basics
ASP.NET Web Server
Advanced HTML
Application Designing
Using Visual Studio
ASP.NET Standards
ASP.NET Styling
ASP.NET Navigation

ASP.NET Tips

ASP.NET Validation
HTML forms
CSS Styling
CSS Advanced
ASP.NET Features
ASP.NET Image Effects
Common mistakes
DB Design tips

Building Applications

Design Secure Apps
Build Secure Apps

ASP.NET Validation Server Controls

Start Lesson »

When using ASP.NET validating user-input is made very easy. You do not need to code from scratch for every input validation because you have already got ready-made ASP.NET Validation Server Controls.

An ASP.NET Validation Server Controls can be used to validate the data input by a user. The validation control checks if the input data passes the validation control and will display an error message if not. The following is the format for an ASP.NET Validation Server Controls code snippet.

<asp:control_name id="some_id" runat="server" />

ASP.NET Validation Server Controls
ASP.NET Validation Server Controls

Validation Control

Description

CompareValidator

This ASP.NET Validator takes an input value and then compares it with another input value or a fixed value.

CustomValidator

This ASP.NET Validator can be used to code your own validation methods to handle the data inputted by the user.

RangeValidator

This ASP.NET Validator which checks a value input by a user against a range i.e. whether it is between two values.

RegularExpressionValidator

This ASP.NET Validator makes sure that the input value matches an already specified pattern

RequiredFieldValidator

This ASP.NET Validator can make an input field a required field.

ValidationSummary

This ASP.NET Validator displays a report i.e. a summary of all validation errors occurred in a Web Page.

Click on Start Lesson to continue learning.

Start Lesson »

More Related ASP.NET tutorials


HTML Tutorial

CSS Advanced Tutorial

HTML Tutorial

HTML Basics tutorial

HTML Tutorial

HTML Advanced tutorial

New Features
New Visual Studio 2005 features
New Features

ASP.NET Image Effects and Rollovers

HTML Tutorial

CSS Styling Tutorial