When we migrate our ASP.NET 1.1 code to ASP.NET 2.0,we may get javascript object not found error on running the web site,when the code is having hardcoded client id in javascript in this way:
XXX__ctlX_txtTempTo resolve this,we need to add the below entry to config file under <system.web>. By adding this entry,the clientid will be generated as per ASP.NET 1.1 standards.
<xhtmlConformance mode="Legacy"/>