October 2010
Intermediate to advanced
1920 pages
73h 55m
English
RegularExpressionValidator ControlThe RegularExpressionValidator control enables you to compare the value of a form field against a regular expression. You can use a regular expression to represent string patterns such as email addresses, Social Security numbers, phone numbers, dates, currency amounts, and product codes.
For example, the page in Listing 3.13 enables you to validate an email address (see Figure 3.11).
Figure 3.11. Validating an email address.

Listing 3.13. ShowRegularExpressionValidator.aspx

The regular expression ...
Read now
Unlock full access