ASP.NET, combining conditionally included script files
<p>We are working on an ASP.NET CMS project using jQuery as the basis for our client side scripting. </p>

<p>The jquery-1.2.6.js file is the only script file that is always included. Other script files are currently included depending on what components the CMS editor is using on a page or page template.</p>

<p>A lot of the script combiners produce a static script. If we took that approach we would have to add all possible script files in just in case they were needed. We are not currently using any of the ASP.NET Ajax extensions so have not looked at what that may give us.</p>

<p>Anyone got any suggestions?</p>

<p><strike>I have read <a href="http://stackoverflow.com/questions/47937/combining-and-caching-multiple-javascript-files-in-asp-net">Combining and Caching multiple JavaScript files in ASP.net</a> but I don't think that covers off the conditional nature of our situation</strike></p>

<p>So great I can use ScriptManagerProxies and some methods on the base master Page. However there is one other thing. Stopping all the ASP.NEt Ajax guff being sent down to the client. I am going to take a look at bleroy's <a href="http://weblogs.asp.net/bleroy/archive/2008/07/07/using-scriptmanager-with-other-frameworks.aspx" rel="nofollow">hack</a> until ASP.NEt 4.0 releases</p>

<p>TIA</p>

<p>Pat Long</p>
