I\'m looking at adding master pages to an existing site but have found that once I do, the elements\' IDs get prepended with a code (e.g. ctl00_MainPageContent_
ctl00_MainPageContent_
This question is old as dirt, but the new way to do it is ClientIDMode="Static".
ClientIDMode="Static"