checkbox
I am adding checkbox into a table dynamically. How will i get the value of the selected checkbox.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gautam ParmarPosted Jan 27, 2018, 8:30 AM
Bharathi RajaPosted Jan 27, 2018, 6:25 AM
AdministratorPosted Mar 21, 2003, 1:43 AM
foreach(TableRow row in Table1.Rows) { foreach(TableCell cell in row.Cells) { CheckBox mychk = cell.Controls[0]; if(mychk.Checked) //do whatever you like } }If this is not successful, I am afraid you need to set the ID of your checkbox and use FindControl to do the job. Hope this help.AdministratorPosted Mar 18, 2003, 11:27 PM
AdministratorPosted Mar 17, 2003, 11:49 AM