View Single Post
  #1 (permalink)  
Old October 8th, 2005, 01:00 AM
frmsasp frmsasp is offline
Registered User
 
Join Date: Sep 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is anybody tell me how to iterate <asp:Checkbox> a

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,