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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
AdministratorRank #675 · 3.6K reputationPosted Mar 17, 2003, 6:49 AM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 18, 2003, 6:27 PM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 20, 2003, 8:43 PM EST
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.Bharathi RajaRank #1,777 · 842 reputationPosted Jan 27, 2018, 1:25 AM EST
Gautam ParmarRank #2,471 · 568 reputationPosted Jan 27, 2018, 3:30 AM EST