for (int i = 0; i < chbklist1.Items.Count; i++) { if (chbklist1.Items[i].Selected) { } else err ++; } if (err==2) { GridView1.DataSource = bal.gridbind(); GridView1.DataBind(); } else { GridView1.DataSource = bal.bachbklist(chbklist1.SelectedItem.Text); GridView1.DataBind(); }
if(checkboxList.SelectedIndex!= -1) { string selectedValue=checkboxList.Items[checkboxList.SelectedIndex].SelectedValue; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)