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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validate multiple chcekboxlist

Status
Not open for further replies.

kindicheema

Programmer
Jun 21, 2006
6
GB
Hi

Using vb with ASP.net, I have a checkboxlist and i wish to check if any items have been selected. But i cant seem to select the checkboxlist with the requiredfieldvalidator control. I have found that i need to create a base class and create my own custom control. Im a bit unconfident with this, can anybody help???

Thanks
 
YOu need to loop through the items in the checkboxlist and see if any are checked. You can't use the validator controls for this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top