Different Validation controls in Asp.net.

Here we will discuss validation controls in asp.net.
Validation controls are there in asp.net to validate proper entry of data.

New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features

There are 6 validation controls in asp.net.Thease are
(1)-Requiredfield validator
(2)-Range validator
(3)-Compair validator
(4)-RegularExpression validator
(5)-Validation Summary
(6)-Custom validator

(1)-Requiredfield validator:
This validator will not allow textbox blank.
Control to validate
Error message

(2)-Range validator:
Validate the textbox within a perticular range of values.
Control to validate
Min value
Max value
Error Message

(3)-Compair validator:
Use this control to compair the values with in different textboxes
Control to validate
Control to compair
Error Message

(4)-RegularExpression validator:
Validate textbox data based on a perticular pattern or expression then we require regular expression validator.
For ex pattern like
/d{5}-> Number will be 5 digits.
Control to validate
validation Expression
Error message

(5)-Validation Summary:
It displays summary of all current validation errors on an asp.net page.
Display mode
Show Messagebox
Show Summary

(6)-Custom validator:
It is used to define some user defined validation or some custom validation.

Check out Best Alternative to InfoPath -> Try Now


(Installation & Features)

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →