Ok, since I use repeaters and other types of controls that rename controls on the client side, and since I also have a lot of javascript that calls on these controls, I have to output the javascript using controlName.ClientID all over the place to ensure that the controls are named properly.
The problem is my .cs page is full of these large concantenaded strings of JS that get added to the page via the ClientScriptBlock feature.
My js is cluttered and hard to debug because of this. Is there a way I can have something like a .js file, unencumbered by the surrounding C# code, and have it included dynamically, while preserving the ability to dynamically load the control names at runtime?
The problem is my .cs page is full of these large concantenaded strings of JS that get added to the page via the ClientScriptBlock feature.
My js is cluttered and hard to debug because of this. Is there a way I can have something like a .js file, unencumbered by the surrounding C# code, and have it included dynamically, while preserving the ability to dynamically load the control names at runtime?