Within my asp.net projects, I have noticed a discrepancy in the control id on the master page's Contentplaceholder1. On my local server, the id appears as "ctl00_Contentplaceholder1_control" after rendering. However, when the application is deployed to the server, the id changes to "Contentplaceholder1_control". I am using the
documents.getelelentbyid('ctl00_Contentplaceholder1_control')
JS function, which works fine locally but not on the server. Can anyone explain why the "ctl00_" portion disappears when the app runs on the server?
Edit:
Why is it that the server-side control id does not include "ctl00_" after being rendered?