I have recently changed the structure of a website to use master pages. The first problem was that all the javascript didn't work because all the ids changed so document.getElementById('id') could find the id because now the id was ct100_something_id. I got that fixed by using ClientIDMode="Static", but now I have discovered that I have another problem on postback as I use Request.Form and all the name attributes are still changed to ct100_....
As far as I can see there is no ClientNameMode, so how do I stop asp.net from creating "fancy" name attributes. I can't explicitly set the name attribute on the server controls.
Just to clarify:
Is there a way to make this:
<asp:HiddenField runat="server" ID="hdnUsername" Value="" />
...render as:
<input type="hidden" name="hdnUsername" id="hdnUsername" value="" />
...and NOT as:
<input type="hidden" name="ctl00$bodyContent$hdnUsername" id="hdnUsername" value="" />
?
Sorry, it's ASP.net property to uniquely identify the server controls on client side by adding unique key as prefix to the id of the control.