开发者

asp.net validationgroup on fieldset

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜