I am using a CheckBoxList/ItemTemplate/FieldTemplate/GridView as below:
AutoGenerateColumns="False"
GridLines="Both"
CssClass="mGrid"
PagerStyle-CssClass="pgr"
AlternatingRowStyle-CssClass="alt">
Codebehind should be:
If ( ALL the checkboxes in GridView1 are checked),
{
continue.
}
Else
Message Box saying "Please Check the missing CheckBoxes". End
How to achieve this?
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Rick SharpPosted Jan 24, 2013, 1:26 PM
http://stackoverflow.com/questions/14485874/checkboxlist-return-checked
http://forums.asp.net/t/1877358.aspx/1/10?p=True&t=634945674706051598
The problem is in FindControl. Its not calling the Contols in CheckBoxList1 because CheckBoxList1 isn't a qualified reference within the Button1_Click event.