ScriptManager vs js files declared in the <head> tag

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.!!
Tom KnowltonWeb developerAsked:
Who is Participating?
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.
Tom KnowltonWeb developerAuthor Commented:

Last time I tried it was a disaster.

This time it seemed to work nicely.  I backed-up beforehadn...   :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.