<p style="border-bottom: solid 1px; padding: 6px" name="p1">
<span>
<input id="chkAllSchools" name="chkAllSchools" onclick="ResetCheckboxes();" type="checkbox" />
<b>Select All Schools</b>
</span>
</p>
To Acces "allSchools" checkbox (don't forget to set name attribute)
1. For
method="get" of form, use C# statement
var result = Request.QueryString["chkAllSchools"];
2. For
method="post" of form, use C# statement
var result = Request.Form["chkAllSchools"];
If checkbox is checked C# will give you string "on" (or value attribute if set for checkbox in our case not set), and if checkbox is not checked on form you'll get null in result.