I have HTML Generated Checkboxes on a page. How can I check to see if they are 'Checked' with c#? I am looking to use an if statement
if (checkbox.checked = true)
{
// EXECUTE CODE HERE
}
I don't know how to call the element since it's HTML.
For my HTML I use another aspx to generate the HTML
FileListLabel.Text += ("<input type='checkbox' name='option" + counter +
"' value='" + SPEncode.HtmlEncode(oListItem["ID"].ToString()) +
"'>" + SPEncode.HtmlEncode(oListItem["LinkFilename"].ToString()) + "<BR>");
Is there a way to make that runat server? Or Should I use the Request.Form?
Thank you.