I have an asp.net application where I load, according to user's desire various usercontrols.
Each usercontrol loaded, via scriptmanagerproxy loads a javascript file. As it is loaded by the usercontrol, it will stop at the Header of the page. The problem is that as they are not removed along with the usercontrol, over time they accumulate.
How can I remove these references to javascripts files that are no longer needed?