title: Using checkboxes with ASP.NET and Javascript
body: <p>I have Javascript code that does this:</p>
  
  <p><code>
  var oObjchbox = document.getElementById("CheckBox_" + countyId);<br>
  </code></p>
  
  <p>The countyId comes from an image map that is pre-made.</p>
  
  <p>The checkboxes on the other hand are created by ASP.NET. My first try was to use an asp.repeater with asp:checkBox, but that did not do the trick since ASP.NET insists on creating own IDs. The other try was to use HTML INPUT without runat=server, but then the checkboxes did not survive a roundtrip.</p>
  
  <p>Does anyone have a solution to this problem? I found a similar problem over here
  
  <a href="http://www.velocityreviews.com/forums/t301617-hijack-databoundliteralcontrol.html" rel="nofollow noreferrer">http://www.velocityreviews.com/forums/t301617-hijack-databoundliteralcontrol.html</a>
  
  but no one answered his question.</p>