In this article you will learn Validation through various Validator controls.
How to implement Validator Control in WebForm in .NET 4.5 version By using validator control there is no need to write any single line of code in code behind file. If you use validator control directly, you can face this yellow screen. How to use validator control in web form with some settings This article is the answer.
CompareValidator additional properties used than RequiredFIeldValidatorControlToCompare: Specify the control name which you want to compare.RangeValidator additional properties used than RequiredFIeldValidatorMinimumValue: Specify the Minimum value of control to accept from user.MaximumValue: Specify the Maximum value of control to accept from user.RegularExpressionValidator additional properties used than RequiredFIeldValidatorValidationExpression:There are so many readymade expression already in Visual studio. You can use those or create your own according to your requirement.
ASP.NET MVC 5: A Beginner’s Guide