Is anybody tell me how to iterate <asp:Checkbox> array loop.

  • Creatore Discussione Creatore Discussione frmsasp
  • Data di inizio Data di inizio

frmsasp

Nuovo Utente
3 Set 2005
4
0
0
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,