A
Adam Plocher
Hello, I have been developing a website locally for quite some time now
in ASP.NET 2.0/C# and all of the web controls (locally) have IDs like
this: ctl00_ContentPlaceHolder1_ddSearchType
I just uploaded it to our live site today, for the first time, and now
all of my IDs look like this:
_ctl0_ContentPlaceHolder1_ddSearchType
What gives? My javascript is now all broken because of this. Is there
a place where I can specify to use ctl00 instead of _ctl0 ? The only
way I can think to fix this is by using a literal (or something) and
have c# generate the JS on the fly using the controls UniqueID
property, which seems really stupid. It's hundreds of lines of JS.
Thanks
-Adam
in ASP.NET 2.0/C# and all of the web controls (locally) have IDs like
this: ctl00_ContentPlaceHolder1_ddSearchType
I just uploaded it to our live site today, for the first time, and now
all of my IDs look like this:
_ctl0_ContentPlaceHolder1_ddSearchType
What gives? My javascript is now all broken because of this. Is there
a place where I can specify to use ctl00 instead of _ctl0 ? The only
way I can think to fix this is by using a literal (or something) and
have c# generate the JS on the fly using the controls UniqueID
property, which seems really stupid. It's hundreds of lines of JS.
Thanks
-Adam