title: how to do a getElementById on an ASP.NET control
body: <p>I have an element on my page.</p>
  
  <pre><code>&lt;asp:Button ID="buttonToFind" runat="server" OnClick="SomeProcess" /&gt;
  </code></pre>
  
  <p>In javascript I'm trying to find this control using:</p>
  
  <pre><code>document.getElementById("buttonToFind");
  </code></pre>
  
  <p>However it can't seem to find the control. My understanding is that the asp:Button gets changed to an input element? This input has a new ID that contains the original ID but with a lot of extra characters therefore I can't find the original ID on the page?</p>
  
  <p>Is this correct?</p>
  
  <p>Also given this how would I go about specifying the correct ID to search for?</p>