ScriptManager vs js files declared in the <head> tag

Posted on 2011-10-21
Last Modified: 2012-05-12
I have some .js files that I declare in the <head> tag in my master page for use throughout the website.


In the <body> of my master page I also have this:

<atlas:ScriptManager id="ScriptManager1" runat="server" EnablePartialRendering="True"
AsyncPostBackErrorMessage="An error has occurred">
<%--<atlas:ScriptReference Path="~/Scripts/always-include-common.js" />
<atlas:ScriptReference Path="~/Scripts/always-include-moz.js" />
<atlas:ScriptReference Path="~/Scripts/always-include-ie.js" />
<atlas:ScriptReference Path="~/Scripts/browser-all.js" />
<atlas:ScriptReference Path="../../Scripts/jquery-1.5.1.min.js" />
<atlas:ScriptReference Path="~/Scripts/thickbox.js" />
<atlas:ScriptReference Path="~/Scripts/jquery.cycle.all.js?v2.23'" />
<atlas:ScriptReference Path="~/Scripts/jquery.hoverIntent.js" />
<atlas:ScriptReference Path="~/Scripts/header.js" />--%>

I did not put this there, and I am not sure really what this is about.

What is the purpose of the ScriptManger...and what do the Script References do that the JS files declared in the <head> tag do not do????

Which one am I supposed to be using?

Incidentally, I was having some trouble with a jQuery plugin and I finally commented out the <ScriptReference> tags in  the Script Manager and the problem went away.!!
Question by:knowlton
    LVL 33

    Accepted Solution

    Wow, haven't seen <atlas: tags in awhile!  Those were used before ajax came out, so you are dealing with a very old/buggy library let me assure you.  If you are already including these scripts in the <head> there is no reason to repeat them, in fact they will likely cause issues being in there twice.  I'd remove anything <atlas if you can get away with it, and don't think it's needed.
    LVL 5

    Author Closing Comment


    Last time I tried it was a disaster.

    This time it seemed to work nicely.  I backed-up beforehadn...   :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now