Javascript ClientID issue in ASP.NET 1.1 to ASP.NET 2.0 Migration

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:

To 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"/>
Ebook Download
View all
View all