ASP.NET : Validation Control

Validation Control
A Validation control is used to check the data of an user's entry on web server contols before you submit data to Server. If the data does not pass validation, it will display an error message.



Figure 1: Validation Control (Visual Studio 2010)

CompareValidatior : Compare a specify data type or Compare a user's entry value between two controls.
CustomValidator : Check a user's entry by validation logic and allow user's logic
RangeValidator : Check a number ranges with minimum and maximum number, alphabetic and Date.
RequiedFieldValidator : Not allow user skip an entry.
ValidationSummary : Show summary of Validation's error message in this control.

Basic Properties
ControlToValidate : Choose your Web Server Control that you want to check.
CssClass : Choose your CSS Class style.
Display : Default is "Static", Choose "none" if you want to show error message (for Summary).
EnableViewStateDefault is "True", Choose "False" to cancel View State.
ErrorMassage : When user's entry value is not validate, show text Message that you want.  

##############################



Validation Control << Previous Chapter || Next Chapter >> CompareValidator (Check Equal)

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...