why do my Control IDs suddenly reference "_ctl0" in ASP.NET?
Posted on 2009-07-04
I have a web application in ASP.NET that uses a master page as a template.
Everything works fine in our development environment, but when we deploy the application to the production environment all of the control IDs change:
For example, this on development:
<input name="ctl00$cphMainContent$txtSomeTextbox" type="text" id="ctl00_cphMainContent_txtSomeTextbox" />
Becomes this on release:
<input name="_ctl0:cphMainContent:txtSomeTextbox" type="text" id="_ctl0_cphMainContent_txtSomeTextbox" />
Has anyone else also seen this behavior? What is cause and how do I go about fixing it so that the IDs do not change in the source?