Condividi tramite


Script combining made easy [Overview of the AJAX Control Toolkit's ToolkitScriptManager]

**

This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of dlaa.me.

See you there!

Comments

  • Anonymous
    June 12, 2007
    The technique used to combine scripts makes it really difficult to use with URL rewriting for example. Would it be possible to still create a HTTP handler and offer it as an option? It would solve several problems like the additional query to each page and enable URL rewriting. I posted this as a work item in CodePlex yesterday: http://www.codeplex.com/AtlasControlToolkit/WorkItem/View.aspx?WorkItemId=10982

  • Anonymous
    June 12, 2007
    Fabrice, Thanks for the feedback! We'll look into what might be involved with supporting an HTTP handler in addition to the current technique as part of the work item you opened. As I note in the blog post, that would require folks to have a certain level of control over the web server (i.e., it may not work for all hosted scenarios), but when it's possible to configure a handler, it could be a nice improvement to ToolkitScriptManager. Great suggestion!

  • Anonymous
    June 12, 2007
    Besides fixing some bugs and adding some new features to the existing controls, the new release of the

  • Anonymous
    June 12, 2007
    Hmm - do we really need a separate handler or would an ASHX do?

  • Anonymous
    June 18, 2007
    A short while ago we made available the 10618 release of the AJAX Control Toolkit . This release addresses

  • Anonymous
    June 20, 2007
    The 10606 release of the AJAX Control Toolkit introduced ToolkitScriptManager, a new class that extends

  • Anonymous
    June 20, 2007
    Per the above trackback, the 10618 release of the AJAX Control Toolkit has a number of improvements to ToolkitScriptManager - including support for the URL rewriting scenario Fabrice mentions above via the optional CombineScriptsHandlerUrl property: http://blogs.msdn.com/delay/archive/2007/06/20/script-combining-made-better-overview-of-improvements-to-the-ajax-control-toolkit-s-toolkitscriptmanager.aspx

  • Anonymous
    September 13, 2007
    Depuis quelques temps déjà, les dernières versions des Ajax Control Toolkit intègre un nouveau contrôle

  • Anonymous
    October 10, 2007
    Awesome tool... however, can we use it to combine regular javascript includes? Or even CSS files?

  • Anonymous
    October 10, 2007
    dmose, Thanks! As it's currently implemented, ToolkitScriptManager is pretty closely tied with the way ASP.NET AJAX's ScriptManager processes and sends down JavaScript files, so I don't think it's directly applicable to other JS/CSS files. However, the basic concept is just as relevant and could probably be implemented similarly for use with general-purpose files. We just haven't done so here. :)

  • Anonymous
    February 06, 2008
    Has anybody noticed the increased PreRenderComplete times when using this control?  My best guess is that there is some expensive operation using this method when trying to combine scripts.  The implications were significant within our app.  Script combination only saved a fraction of total download size, where I gained .7 seconds on the server for rendering this script.  Definetly a deal breaker.

  • Anonymous
    February 15, 2008
    This is probably already well known and well documented, but I still occasionally see people bemoaning

  • Anonymous
    August 18, 2008
    How is this affected by the newly release CompositeScript functionality of scriptmanager in asp.net 3.5SP1? Can we use the new functionality instead somehow? Thanks

  • Anonymous
    August 18, 2008
    The comment has been removed

  • Anonymous
    October 21, 2008
    try following link ... it works very well http://www.codeproject.com/KB/aspnet/AspNetOptimizer.aspx Moiz Dhanji

  • Anonymous
    December 02, 2010
    When I run a page that has a CalendarExtender (the same is true for most of the controls, no patience to go through all of them) on it I get an error: “Sys.Extended.UI” – is null or not an object. Is there a work around besides setting the CombineScripts="false", which kind of voids the great idea of script combining? I’m using the AjaxControlToolkit.Binary.NET35.

  • Anonymous
    December 03, 2010
    shanoyan, I'm afraid I don't have any experience with the release you're using... My ideas would be to see if ASP.NET's built-in script combining (added after we created ToolkitScriptManager) will work for your scenario - or if there might be a version mis-match that's causing Sys.Extended.UI to be referenced when it shouldn't be.

  • Anonymous
    June 25, 2011
    With ScriptManager in .Net 4 with CompositeScript functionality, is any reason to use  ToolkitScriptManager ? If not, it would be good to put an UPDATE at the top of the article, stating that the ToolkitScriptManager is out-dated.

  • Anonymous
    June 26, 2011
    Michael Freidgeim, Thanks for pointing that out - I've added a note as you sugest! :)

  • Anonymous
    July 23, 2012
    So, ToolkitScriptManager is out-dated? is there any point in replacing <asp:scriptmanager> with ToolkitScriptManager for the date textbox?

  • Anonymous
    July 23, 2012
    so the  ToolkitScriptManager is out-dated now? is there any point in updating the <asp:scriptmanager with  ToolkitScriptManager now?

  • Anonymous
    July 24, 2012
    Azim, I'd probably start by using ScriptManager and if you find it does everything you need, then there's not much reason to switch. :)