Validating checkbox asp net
Now you can ask questions directly to me on my new site ASPForums.
Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.
only if user clicks button control whitout checking the checkbox.
(message saying you mush check one checkbox before deleting anyrow.) but in gridview i used the following line.
It first gets the Check Box List and its internal Check Boxes and then a loop is executed to check whether the Check Boxes are checked or unchecked. Now you can ask questions directly to me on my new site ASPForums.
Hi Folks, I am trying to validate checkbox (checked or not) in grid view.
I have tried the "requiredfieldvalidator" and the "regularexpressionvalidator", but haven't been able to get either of them to work the Checkbox. Thanks, Scott Scott, If you have tried the Required Field Validator, you would have seen: Control 'chk' referenced by the Control To Validate property of 'Required Field Validator1' cannot be validated.
By Bill Evjen Reuters December 2003 Applies to: Microsoft® ASP. NET validation server controls that are at your disposal.
NET Summary: Learn how to use all the available ASP.
A quick search of Google for "validate checkbox", you would find that one of the results is: and this explains how validations work.
Here's a page that validates a checkbox: I would like to validate that a Checkbox is checked on the client-side.