It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming ASP & ASP.NET Forum

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

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

Postby frmsasp on Sat Oct 08, 2005 5:01 am

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,
frmsasp
 
Posts: 8
Joined: Sat Sep 03, 2005 8:02 am

Who is online

Users browsing this forum: No registered users and 1 guest

cron