Validation Controls (Asp.net Series # 1)

Type of Validation Control:
  1. RequiredFieldValidator :  Ensures that the user does not skip an entry. e.g  Mandatory Fields
  2. CompareValidator: Compares a user's entry against a constant value, against the value of another control (using a comparison operator such as less than, equal, or greater than), or for a specific data type.
  3. RangeValidator: Checks that a user's entry is between specified lower and upper boundaries. You can check ranges within pairs of numbers, alphabetic characters, and dates.
  4. RegularExpressionValidator: Checks that the entry matches a pattern defined by a regular expression. This type of validation enables you to check for predictable sequences of characters, such as those in e-mail addresses, telephone numbers, postal codes, and so on.
  5. CustomValidator: Checks the user's entry using validation logic that you write yourself. This type of validation enables you to check for values derived at run time.
Working Example of Validation Control:

Download Full Example Here
Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

2 comments:

  1. Hi Rashid,

    Please do also mention the ValidationSummary Control also. It is also part of the List of Validation Controls provided in ASP.NET.

    ReplyDelete
  2. Thnx Manoj!

    I will update this article and include this control also here. :)

    n for your 2nd comment. i just say i may check it again as i am very careful about contents as i assure that content by many references and books. but i'll check it once again... thnx for your support ...

    ReplyDelete