then I remote the scriptReference named jquery (and aspnet.scriptmanager.jquery.dll too, of course) my website will report that "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping
named jquery(case-sensitive)."
how can I render jquery using bundles and still use unintrusive validation? In fact my pages HAVE jquery loaded, so why I may disable unintrusive validation?
bazbaz
Member
16 Points
11 Posts
jQuery: ScriptBundle and ScriptReference
Oct 12, 2012 05:14 PM|LINK
if I use ScriptBundles I need to put jQuery in a bundle too and not to use a ScriptReference (otherwise, jquery will be loaded AFTER my bundles).
But if I create a ScriptBundle as this
bundles.Add(New ScriptBundle("~/bundles/jquery", "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js").Include( "~/Scripts/jquery-{version}.js"))then I remote the scriptReference named jquery (and aspnet.scriptmanager.jquery.dll too, of course) my website will report that "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive)."
how can I render jquery using bundles and still use unintrusive validation? In fact my pages HAVE jquery loaded, so why I may disable unintrusive validation?
thanks