开发者

asp.net validationgroup on fieldset

开发者 https://www.devze.com 2023-01-03 11:15 出处:网络
is there a way to add a validationgroup to a fieldset, this way i do not have to add a validationgro开发者_如何学Goup attribute to every single validator within that fieldset?Not as simple as that. As

is there a way to add a validationgroup to a fieldset, this way i do not have to add a validationgro开发者_如何学Goup attribute to every single validator within that fieldset?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消