Wouldn’t It be great…

The majority of the validation controls target a specific web control via the ControlToValidate attribute, in the case that I have a text box to that collects required date info I will need two controls, a CompareValidator and a RequiredFieldValidator. Each are dropped separately on the web form and must have independent messages and style (yada yada)

 

Wouldn’t it be great if web controls like TextBox had a validators collection where multiple validation rules can be set up in design time (or run time for that matter) without the need for the separate validation controls on the page.

 

Just a thought…

1 Comment

Comments have been disabled for this content.