protected void BtnSubmit_Click1(object sender, EventArgs e) { foreach (DataListItem item in DataList1.Items) { CheckBox lblNewsLetter = (CheckBox)item.FindControl("CheckBox1"); Boolean bol1; bol1 = Convert.ToBoolean(lblNewsLetter.Checked); if (lblNewsLetter != null) { if (lblNewsLetter.Checked) { Label1.Text += lblNewsLetter.Text + ","; } else { Label1.Text = "Failed"; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)