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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.