Selecting muiltple checkboxes at a time

9 views
Skip to first unread message

naidu guruvu

unread,
Feb 22, 2014, 7:11:46 AM2/22/14
to naidu guruvu, datapoint_...@googlegroups.com
1)first place panel on webform and place muiltiple checkboxes and take
one chcekbox out of panel and set the property autopostback is true
and wrte the below code under out of the checkbox





protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
foreach (Control control in Panel1.Controls)
{
if (control is CheckBox)
{
((CheckBox)(control)).Checked = CheckBox1.Checked;
}
}
}
Reply all
Reply to author
Forward
0 new messages