In Asp.net
. how can I access every checkbox
exists in the page using C#
code ?
This gets you every Checkbox
on the page. You can change the form1
to whatever control you want to search inside of.
foreach (Control ctl in form1.Controls)
{
if (ctl is CheckBox)
{
}
}
Alternatively if you know the ID of the control:
form1.FindControl("id");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With