title: How to set specific ID for server controls in an ASP.NET Web Form that is using a MasterPage?
body: <p>Is it possible to set a specific ID on an ASP.NET server control? Everytime I assign an ID and run the web form the ID changes. </p>
  
  <p>For Example:</p>
  
  <pre><code>&lt;asp:TextBox ID="txtName" runat="server"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>Gets translated into this:</p>
  
  <pre><code>&lt;input id="ct100_ContentPlaceHolder1_txtName" type="text" /&gt;
  </code></pre>
  
  <p>I think this is do to me using master pages, but if so how can I be sure a control will have a certain ID(for javascript purposes). I placed the auto-generated id in my javascript and it is working, but I would prefer to have used the id's that I originally assigned them. Is this possible?</p>
  
  <p>(This is for version:ASP.NET 3.5)</p>