How do you get the ID of a control in ASP.NET
- by James
I am attempting to loop through an array of numbers, match them to the checkbox they they are associated with, and checkmark that box.
My checkbox is set up like:
<input type="checkbox" runat="server" id="someID" name="somename" value="1234" />
My code when the page loads currently looks like:
foreach (string interest in interests_Var){
…