Ok, I'm making a couple of JQuery versions of the AJAXToolkit controls (we were having issues with the toolkit), and want to have a common version of the scripts they require on the page.
To do this, I was intending to have a JQueryControlManager control, and use it to insert scripts dynamically, preferably only scripts that are needed by controls on the page.
Does anyone know of an efficient way to:
- Check a ControlManager control exists on the page if some other JQueryControls do
- Add each control to a collection within the ControlManager, assuming the answer to the first point does not return the JQueryControlManager instance
OR
Does anyone have a suggestion for a better solution?