Reputation: 7794
I am writing a small asp.net WebForms app. that uses Jquery. Is there any benefit to using the ASP.Net ScriptManager control as opposed to just using the tag to import my Jquery and custom javascript code?
Upvotes: 2
Views: 3521
Reputation: 3006
You must use a ScriptManager control on a page to enable the following Microsoft Ajax features of ASP.NET:
If you're not using Ajax, you do not need to use script manager, and gain no benefits.
Source: http://msdn.microsoft.com/en-us/library/bb398863.aspx
Upvotes: 5
Reputation: 21788
Hmhmm for "normal" jQuery + JS code there are no real benefits, but see the benefits listed on MSDN, there IS a reason for the ScriptManager
:
Upvotes: 1
Reputation: 4030
If you are not using ASP .Net Ajax Framework, there is no real need to use the ScriptManager
and it only ads kb's to your page.
JQuery, by no ways, depends of ScriptManager
so I would recomend to only use the script tag to import your javascript code.
Upvotes: 2