What does a ScriptManager script link do?

In the previous project I was working on, I noticed that javascript files were included inside the script manager, for example:

 <asp:ScriptReference Path="~/Scripts/jquery-1.7.1.min.js" />
 <asp:ScriptReference Path="~/Scripts/site.js" />

I tried to find that the difference between the script link and the regular one <script src="/>is on the asp page, but cannot find any information. Is there any advantage to using a script link?

thank

+4
source share
1 answer

When you use ScriptManager, then you can create one Composite Script to reduce the number of ASP.NET browser requests.

You can also call the ScriptReference Class

The aboutScriptManager section also contains more information about this:

ScriptManager - ASP.NET, ASP.NET Ajax Script. ScriptManager .

  • Eanbles Script -

ScriptManager. , ScriptManager, , usercontrol, ScriptManagerProxy.

+3

All Articles