title: "ctl00_Body" in asp.net generated objects' id
body: <p>I'm using asp.net with c# and I'm using the normal asp.net controllers (asp:Table, asp:Button, etc), but I need to use some javascript over these controllers and even though I set up the id like:</p>
  
  <pre><code>&lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
  </code></pre>
  
  <p>in the html code I get</p>
  
  <pre><code>&lt;input type="submit" name="ctl00$Body$Button1" value="Button" id="ctl00_Body_Button1" /&gt;
  </code></pre>
  
  <p>where the ID changed from "Button1" to "ctl00_Body_Button1". Is there I can get the "ct_100_Body_" in javascript so I can access the controller by ID properly, and to avoid typing something like</p>
  
  <pre><code>document.getElementById("ctl00_Body_Button1")
  </code></pre>
  
  <p>for example?</p>
  
  <p>Thanks!</p>