Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Validation Control for CheckBoxLists

Status
Not open for further replies.

MSVB

Programmer
Dec 17, 2002
3
IN
RequiredFieldValidators do not work with the CheckBoxList Web controls. (CheckBoxLists present a list of grouped check boxes for the user to select one or more checkboxes from.) If I specify a RequiredFieldValidator's ControlToValidate property to the ID of a CheckBoxList Web control I'm getting an exception informing that the CheckBoxList cannot be validated.

I'd like to ensure that the user has selected at least one checkbox from the checkboxlist.Can anyone please help me? Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top