Dear Friend,
Is anybody tell me how to iterate <asp:Checkbox> array loop.
e.g. in PHP
<INPUT TYPE="CHECKBOX" NAME="CHK[]">
I am using foreach loop.
Will you pl guide me for below ASP.Net with C# code.
While (daDetail.Read())
{
lblLabel.Text += "<input type='checkbox' name='chk[" + daDetail["Module_id"] + i.ToString() + "]' value='A'>Add
}
This will create multiple checkbox. Now I want to know that how to get value of selected checkbox ?
Thanking You,
Is anybody tell me how to iterate <asp:Checkbox> array loop.
e.g. in PHP
<INPUT TYPE="CHECKBOX" NAME="CHK[]">
I am using foreach loop.
Will you pl guide me for below ASP.Net with C# code.
While (daDetail.Read())
{
lblLabel.Text += "<input type='checkbox' name='chk[" + daDetail["Module_id"] + i.ToString() + "]' value='A'>Add
}
This will create multiple checkbox. Now I want to know that how to get value of selected checkbox ?
Thanking You,