title: Accessing ASP.NET controls dynamically from JavaScript
body: <p>here's what I mean:</p>
  
  <p>I have a few controls, for example, </p>
  
  <pre><code>&lt;asp:DropDownList ID="ddlDate1" runat="server" /&gt;
  &lt;asp:DropDownList ID="ddlDate2" runat="server" /&gt;
  &lt;asp:DropDownList ID="ddlDate3" runat="server" /&gt;
  </code></pre>
  
  <p>in my javascript, I want to do something like this:</p>
  
  <pre><code>for (i = 1; i &lt;= count; i++) {
      something[i] = document.getElementById("&lt;%= ddlDateRange" + i + ".ClientID %&gt;");
  }
  </code></pre>
  
  <p>any way I can make this work, or any alternatives?</p>