views:

60

answers:

1

is there a way to add a validationgroup to a fieldset, this way i do not have to add a validationgroup attribute to every single validator within that fieldset?

+1  A: 

Not as simple as that. Asp.net validators are not aware of the surrounding HTML.

What you might be able to do is assign an id and runat='server' to your fieldset. Then programatically run through each control inside and if it's a validation control, assign your validation group.

Keltex