Can one validation control work for multiple textboxes?

  • Thread starter Thread starter Russ
  • Start date Start date
R

Russ

I have a huge form with 91 controls on it and about 1/3 of them are date
fields. Is it possible to use just one compare validator to make sure dates
are being entered or do I have to make one for each text box?

Also can someone think of a easy way to make it so all of these date text
boxes will convert a date entered like this 120203 to 12/02/2003?
 
I tried:

txtbox.Text = txtbox.Text.ToString("##/##/##");

It would not compile saying that their were invalid arguments.
 
Have you considered using dropdown lists instead of textboxes? This gives
you control of the formatting.

Joe
 
Back
Top