Posted on: 7/17/2013 1:47:48 PM | Views : 245

Have a single user control that is used twice on a aspx page which I set the validationgroup by
<address:Address id="HomeAddress" runat="server" ValidationGroup="address" IsPhoneRequired="true" /> <address:Address id="ContactAddress" runat="server" ShowType="false" ValidationGroup="contact" IsPhoneRequired="true" /> The control then sets the validation controls validationgroup to the group name passed (address) on the 4 validators.
public string ValidationGroup { set { RequiredFieldValidator1.ValidationGroup = RequiredFieldValidator2.ValidationGroup = RequiredFieldValidator3.ValidationGroup = RequiredFieldValidator4.ValidationGroup = value; } } RequiredFieldValidator1 and its corr ...

Go to the complete details ...