Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with RegularExpressionValidator

Status
Not open for further replies.

AT76

Technical User
Apr 14, 2005
460
US
In a textbox field user is supposed to enter a 5 digit #. I added a RegularExpressionValidator with the following settings:

ControlToValidate: point to textBox user needs to enter 5 digits
ErrorMessage: "Field should contain 5 digits"
ValidationExpression: \d{5}

When I run the webform If I type anything in the textBox I see the error message. If I then change it to a 5 digit # it still keeps the error message. Could someone help me figure what I left out? Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top