I have an ASP page that generates a dynamic list at run time which contains an HTML (not ASP) Checkbox next to each item. My question is, once a PostBack occurs, how can I loop through all the Checkboxes with a given name such as:
In the code behind, I need to be able to loop through all Checkboxes with the ID of "clients" and determine the "value" and the "checked" property.Code:<input id="clients" type="checkbox" value="1" /> <input id="clients" type="checkbox" value="2" /> <input id="clients" type="checkbox" value="3" />
I don't want to use the checkboxlist control or datagrid, so please don't suggest that. I really need the above to work.
Any example would be appreciated.




Reply With Quote