TValidatorGroup allows an arbituary set/group of validators to be active for a Web Control object event. For example, suppose you have two set of validators
Set A :
Validator with ID "Validator_A1"
Validator with ID "Validator_A2"
Set B :
Validator with ID "Validator_B1"
Validator with ID "Validator_B2"
In addition, you have two buttons with IDs "ButtonA" and "ButtonB". When "ButtonA" is clicked you want the validators in Set A to be validator, but not the validators in Set B. And similarly for "ButtonB" validators for Set B should be validated but not validators in Set A.
So when "ButtonA" is clicked, validators "Validator_A1" and "Validator_A2" will be validated, but NOT validators "Validator_B1" and "Validator_B2". After the validation, the event OnClick on ButtonA will be called, i.e. function "addName" will be called.
Properties
Members, string
Gets or sets the validators for this group.
The accepted value is in the form of validator IDs separated by commas.
E.g. Members="Validator1, Validator2"
Event, string
Gets or sets the Object and Event for activating this group
of validators. The Event attribute must consist of a single web control
object ID and a event on that object separated by a colon. e.g.
Event="Button1:OnClick"
Set the anchor ID for the error message link. If the value is "true" then the ID of the ControlToValidate will be used otherwise the given value will be used as the anchor.
Set the control object and the event to which the validator group is activated.
The Event attribute must consist of a web control object ID and the event on that object separated by a colon. E.g. Suppose we have a button with ID "Button1", and we want the validators to be activated by this button when clicked, we set <em>Event="Button1:OnClick"</em>.
The Member attribute is a string in the form of validator IDs separated by commas. E.g. if there are validators with IDs "VPCheck1" and "VPCheck2", then we have <em>Members="VPCheck1, VPCheck2"</em>.