Tweet
SIGN UP
MEMBER LOGIN:
TECHNOLOGIES
.NET 4.5
.NET Remoting in C#
Active Directory C#
ADO.NET in C#
AJAX in C#
Algorithms in C#
Android Programming
Articles C#
ASP, JavaScript, CSS
ASP.NET Controls in C#
ASP.NET MVC with C#
ASP.NET Programming
BizTalk Server
C# Assemblies
C# Language
C# Tutorials
C, C++, MFC
Career Advice
Chapters
Cloud Computing
COBOL.NET
Coding Best Practices
COM Interop
Compact Framework
Cryptography C#
Crystal Reports C#
Current Affairs
Custom Controls C#
Databases & DBA
Deployment
Design & Architecture
DirectX C#
Enterprise Development
Error Zone
Exception Handling C#
Expression Studio
F#
Files, Directories in C#
Financial Applications
Games Programming C#
GDI+ & Graphics
Hardware
How do I
HTML 5
Internet & Web
iPhone/iPad
Java
Java and .NET
JQuery
JSP
Leadership
Learn .NET
LINQ with C#
Metro Style Apps in C#
Mobile & Embedded
MonoDevelop
MSMQ in C#
Multithreading in C#
Networking
Office Development
OOP/OOD
Operating Systems
PHP
Printing in C#
Products
Project Management
Reports using C#
Robotics & Hardware
Security in .NET
SharePoint
Silverlight with C#
Smart Devices
Speech in C#
SQL
SQL Server 2012
String in C#
Team Foundation & VSS
Testing
Visual Basic .NET
Visual C#
Visual Studio .NET
Visual Studio 11
Visual Studio 2010
VS LightSwitch 2011
WCF with C#
Web Forms C#
Web Services in C#
WebForms Controls
Windows 8 in C#
Windows Controls C#
Windows Forms C#
Windows Phone in C#
Windows PowerShell
Windows Services in C#
Workflow Foundation in C#
WPF with C#
XAML with C#
XML in C#
XNA with C#
FORUMS
BLOGS
VIDEOS
INTERVIEWS
CERTIFICATIONS
DOWNLOADS
BOOKS
LINKS
NEWS
Learn .NET in 60 days – Part 1 (13 Labs)
Learn MVC (Model view controller) Step by Step ...
Learn C# Corner - Home
Using Border Radius and Gradients in CSS3: Part I
Learn C# Corner - Footer
Learn .NET and C# in 60 Days Lab13(Day 5): - C ...
iPhone 5 First Look
Samsung Galaxy Note Review
WCF - Authentication and Authorization in Ente ...
How to write a good article on C# Corner
Blog
Types of validation controls provided by ASP.NET
Posted by
Nipun Tomar
in
Blogs
|
.NET 4.5
on
Dec 18, 2011
ASP.NET Provide six types of validation controls which are as under:-
Tweet
685
0
0
VALIDATION CONTROLS:-
ASP.NET Provide six types of validation controls which are as under:-
1. Compare Validator: It checks that the value in controls should match some specific value.
For Example - Textbox
TxtPie should be equal to 3.14.
2. Custom Validator: It is used to define UserDefined validation i.e checks the user's entry using validation logic that we write ourself. This type of validation enables us to check for values derived at run time.
3. RangeValidator: It checks if the value in validated control is in that specific range.
For Example - TxtCustomerCode should not be more than eight length.
4.
RequiredFieldValidator: It ensures that the user does not skip an entry i.e it checks whether the control have any value. It is used when we want the control should not be empty.
5. RegularExpressionValidator: It checks that the entry matches a pattern defined by a regular expression. This type of validation enables us to check for predictable sequences of characters, such as those in e-mail addresses, telephone numbers, postal codes, and so on.
6. ValidationSummaryControl: As the name explains it displays the summary of all current validation errors. It is often used in conjunction with other validation controls to display the error messages from all the validation controls on the page together.
share this blog :
New Relic Profiler for .NET
VS 2010 Keyboard Shortcut posters
Related Blogs
TextBox validation using JQuery
Google Type Textbox Auto bind value using Web services
Want to develop for Social Networking using ASP.Net 4.0? Then grab the book ASP.Net 4.0 Social Networking authored by Atul Gupta
Use of Validation Group in asp.net
How to use Web Browser Control in .Net
6 Tips for Working with the ASP.NET AJAX Accordion Control
post comment
Sponsored by
Become a Sponsor
More Blogs from this Blogger
Show/hide Solution and Advanced Build Configurations
Recycle IIS Application Pool
How To Disable All Triggers on a Database
How to get all dates between date range in sql query
Difference between URL and URI
Difference between RDL and RDLC formats
Types of validation controls provided by ASP.NET
.svc file in WCF
WPF: How to display content in an Expander
WPF: Control Template that is customized by properties
View All
Latest Blogs
Free Ride is Over for Desktop Developers in Visual Studio 11
DotNet developers most used application/tools launching through 'Run'
80-inch Windows 8 Tablet
Data encapsulation
Option to access the Column Names in Data table
Open multiple windows in browser startup. (Multiple homepages option)
I'm Sorry
const and readonly
Address, Binding and Contract in WCF
JQuery Maxchars Plugin
View All
Sponsored by
Become a Sponsor