Remove unwanted id for a control when declared in asp:content in ASP.NET
<p>Consider sample piece of code in asp.net which has a master page associated with it</p>

<pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderA" Runat="Server" &gt;
    &lt;asp:TextBox ID="TextBoxB" runat="server" CausesValidation="True" Height="96px" Width="426px" /&gt;
&lt;/asp:Content&gt;
</code></pre>

<p>When the page is rendered in browser id generated for textbox with id "TextBoxB" is</p>

<pre><code>ctl00_ContentPlaceHolderA_TextBoxB
</code></pre>

<p>Below is the equivalent html code.</p>

<pre><code> &lt;input name="ctl00$ContentPlaceHolderA$TextBoxB" type="text" id="ctl00_ContentPlaceHolderA_TextBoxB" style="height:96px;width:426px;" /&gt;
</code></pre>

<p>Is it possible to have same id of TextBoxB in both HTML and aspx page.</p>

<p>Thanks in Advance.</p>
