Help with CustomValidator

  • Thread starter Thread starter Beryl Small
  • Start date Start date
B

Beryl Small

Hi all,
I need to validate a textbox on a webform so that the user can only enter
information in the following format:

08-11-12-04

8 digits with dashes separating them into twos. Can anyone please help me?
 
You could use a RegularExpressionValidator instead of a CustomValidator

The Regular Expression should be something like:

"\d\d-\d\d-\d\d-\d\d"
 
Back
Top