I have a web application that works in our stage/test environment fine but once we moved it to our production environment something weird happens. All the control ids change. For example a label went from ctl00_cphMainContent_lblPetName to _ctl0_cphMainContent_lblPetName. Why would this happen? What could cause something like this to happen. The only two differences I know of are the production environment has HTTPS and I’ve disabled debugging.
I have a web application that works in our stage/test environment fine but once
Share
Your web.configs differ. Behaviour of the client ID generation depends on EnableLegacyRendering. Please review xhtmlConformance element of your web.config. If it Legacy you will get “_ctl”, if not – “ctl”.