ASP.NET validation controls
validate data first on the client and then on the web server. If a client
disables JavaScript on the browser then, client side validations are bypassed
and validations are performed on the web server.
Validation controls also
automatically provide server-side validation. Server-side validation is always
performed, whether or not client-side validation has occurred. This
double-checking ensures that custom validations are performed correctly and
that client-side validation has not been circumvented.
Validation
Controls in Asp.Net
- RequiredfieldValidator
- CompareValidator
- CustomValidator
- RegularExpressionValidator
- ValidationSummary
- RangeValidator
RequiredfieldValidator:
Checks
whether a control contains data
CompareValidator:
Checks
whether an entered item matches an entry in another control
RangeValidator:
Checks
whether an entered item is between two values
RegularExpressionValidator:
Checks
whether an entered item matches a specified format
CustomValidator:
Checks the
validity of an entered item using a client-side script or a server-side code,
or both
ValidationSummary:
Displays
validation errors in a central location or display a general validation error
description
Comments
Post a Comment