<asp:CheckBoxList ID="chkNoDue" runat="server" Checked="True" EnableViewState="true" DataTextField="mi_DOC_NAME" DataValueField="MI_DOCUMENTSLIST_ID" AppendDataBoundItems="false" > <asp:Button id="btnDocuments" runat="server" OnClick="btnDocuments_Click">
for (int i = 0; i < chkNoDue.Items.Count; i++) { int Documentid = Convert.ToInt32(chkNoDue.Items[i].Value.ToString()); Boolean check; if (chkNoDue.Items[i].Selected) { check = true; } else { check = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //Bind Checkboxlist here BindCheckboxList(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)