Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
507 views

I have to include https://www.npmjs.com/package/vue2-daterange-picker in my project made with Kendo, Vue, .Net, Angular and jQuery(Yes it's a lot). <script src="https://unpkg.com/vue2-...
BeaST 30's user avatar
  • 744
5 votes
0 answers
3k views

In the Asp.Net MVC BundleConfig if i use ScriptBundle it shows below error for this code: Code: bundles.Add(new ScriptBundle("~/node/GobiJs").Include( "~/node_modules/...../test.js" ...
Arif's user avatar
  • 6,618
1 vote
1 answer
50 views

I'm working on a asp.net web-form website in which I use ../ for routing files like js files, styles, etc. When I decided to apply ScriptBundle and replace ~/ instead ../ the website didn't work at. ...
Sasan's user avatar
  • 614
1 vote
2 answers
2k views

asp.net mvc bundles do not render for https. here is my code: bundles.Add(new StyleBundle("~/Content/css/css").Include("~/Content/css/custom.css")); View @Styles.Render("~/Content/css/css") And the ...
June's user avatar
  • 51
3 votes
2 answers
3k views

I'm a little confused. I have my _layout.cshtml page below and it has a bunch of bundles containing .css and .js files. When I first load the site it runs through each file in the bundles. Fine, OK, ...
chuckd's user avatar
  • 14.8k
0 votes
1 answer
508 views

I'm trying to include js files that are not part of the original ~/Scripts folder included in a MVC web project. Rather I have my script files inside of my Feature folder like: ~/Features/MyNewFeature/...
TMan's user avatar
  • 4,110
0 votes
1 answer
986 views

Before asking this question, I read the following two questions in Stack Overflow to avoid duplicate questions: 1) @Render.Scripts in plain .html file - not in .cshtml 2) Rendering the script bundle ...
AMProgrammer's user avatar
2 votes
1 answer
847 views

I have this code in BundleConfig.cs which simply includes a script bundles.Add(new ScriptBundle("~/bundles/ui-scripts").Include( "~/Scripts/ui-scripts.js")); On my locale ...
CyberProdigy's user avatar
  • 1,039
0 votes
0 answers
79 views

I've configured bundles in ASP.NET BundleConfig.cs file. ScriptBundle thirdPartyScripts = new ScriptBundle("~/bundles/js"); thirdPartyScripts.Include( "~/js/flowtype.js", "~/js/moment.js"...
Liron Harel's user avatar
  • 11.3k
-2 votes
1 answer
1k views

I have a problem in rendering few of my partial view’s script tags should render at the bottom in _Layout.cshtml page.
sridharnetha's user avatar
  • 2,218
1 vote
1 answer
277 views

how can I add GET to script in ScriptBundle ? example: bundles.Add(new ScriptBundle("~/bundles/baseJs").Include( "~/Scripts/index.js" )); and I want to call ...
heyo's user avatar
  • 19
0 votes
0 answers
248 views

I have an api I built which is split into many files and have configured script bundles to build them into one. I want to provide two urls for the api to other teams in my company. One Api will be ...
Ryan Mann's user avatar
  • 5,397
0 votes
1 answer
286 views

I'm trying to enable client js caching for a asp.net mvc bundle added to an external site. Currently the site references the js bundle by using url https://example.com/bundles/myscriptbundle. ...
NullReference's user avatar
1 vote
0 answers
635 views

When using bundle fallbacks in MVC, I notice that when the cdn fails, the fallback bundle does not have a version string attached to it. Is there a way to force the version string to appear? My ...
hobwell's user avatar
  • 536
2 votes
1 answer
3k views

Before I start let me say that I know there are other questions on SO about this issues that have great answers but please let me explain how mine is different. I have an ASP.NET MVC 5 project where ...
AnonDCX's user avatar
  • 2,611
1 vote
0 answers
2k views

I have a big Javascript file generated dynamically from a method in a Controller. public ActionResult GetEditingContext() { string json = JsonConvert.SerializeObject(...); return JavaScript(...
Stephane Mathis's user avatar
0 votes
1 answer
264 views

I'm putting this up as a way to save people time. I'm using jQuery 1.11.3, and MVC with ScriptBundle On large pages I started getting errors calling addEventListener in ready.promise Funnily ...
Roger Willcocks's user avatar
3 votes
2 answers
3k views

Attempting to use css and js files with same virtualpath bundle name 1 - is it possible ? (tried:but failed. cant define same virtual path name both for script and style) 2 - it it possible to ...
Fables Alive's user avatar
  • 2,855
1 vote
1 answer
439 views

In vNEXT, what happens to the bundling support via ScriptBundle and StyleBundle? My understanding is that bower, grunt & co. will completely replace that mechanism? Are there examples on how to ...
John's user avatar
  • 3,677
3 votes
0 answers
500 views

We are experiencing a StackOverflow exception in VS2013 using: var importedTypesBundle = new ScriptBundle("~/ImportedTypes/all.js"); Replacing with Bundle() it works... but it does not minify. It ...
Robert's user avatar
  • 882
1 vote
5 answers
4k views

I have a control that features code similar to the following: Javascript $("#Postcode").autocomplete({ source: '@(Url.Action("AutocompleteHelper"))' }); HTML @Html.EditorFor(model => model....
Gary Chapman's user avatar
3 votes
1 answer
5k views

I'm using ASP.NET MVC 4 with Bootstrap and I've noticed that my project is a little bit different from a lot of articles and tutorials about "building your site with Bootstrap", they keep mention the ...
Ron's user avatar
  • 1,924
2 votes
1 answer
2k views

I want to include javascript files from whole folder and subfolders into a single ASP.NET Bundle. The purpose of this is to load all files from that folder at once. The idea is to create an angular ...
Bogdan Beda's user avatar
5 votes
3 answers
721 views

What is the difference in bundling: bundles.Add(new ScriptBundle("~/bundles/jquery") .Include("~/Scripts/jquery-{version}.js","file2.js", "file3.js")); vs bundles.Add(new ScriptBundle("~/...
HelloWorld's user avatar
  • 4,932
1 vote
0 answers
318 views

I'd like to implement a custom IBundleTransform that is executed for every request. This would allow it to send user-specific CSS to each user. However, it seems that even if I set the UseServerCache ...
pattermeister's user avatar
0 votes
1 answer
763 views

Is there a way to programmatically render a script bundle? Using script bundles in MVC is great. Like it. Use it. Now I'm writing an application that uses Self-Host WebApi in which I'd like to also ...
Michael H. Pedersen's user avatar
10 votes
1 answer
6k views

I'm trying to render a JavaScript bundle using Microsoft's Web Optimization framework, like this: @Scripts.Render("~/assets/bundle.js") And building a small bundle, like this: public static void ...
Brandon Linton's user avatar
0 votes
1 answer
395 views

When I run my application locally, the javascript references work as expected, but when I deploy it to our dev servers, it adds jquery 2.0.2 reference right before the 2.0.3 reference. Why is it ...
Paul Reedy's user avatar
15 votes
3 answers
10k views

I recently added jquery.dataTables nuget package to my project and I wanted to bundle the necessary files inside the BundleConfig. Since this package is installed inside a "DataTables-1.9.4" folder ...
Marko's user avatar
  • 13.4k
1 vote
2 answers
317 views

As Asp.Net MVC4 supports script bundling, it is very convenient to use something like bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.unobtrusive*", ...
Klotin's user avatar
  • 165
0 votes
1 answer
397 views

I have the following KnockoutJS custom binding: ko.bindingHandlers.dtp = { init: function (element, valueAccessor, allBindingsAccessor) { //initialise datetimepicker with some optional ...
daveywc's user avatar
  • 3,146
2 votes
0 answers
114 views

This is just for interest sake. Why does the vanilla MVC template in VS split the script bundles into ScriptBundle("~/bundles/jquery") and ("~/bundles/jqueryval") I realize that most pages won't ...
Swifty's user avatar
  • 1,442
9 votes
1 answer
11k views

I've included the following line in the BundleConfig.cs file: bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include( "~/Scripts/jquery.unobtrusive-ajax.min.js")); However when I try to ...
Shimmy Weitzhandler's user avatar
4 votes
2 answers
2k views

public class BundleConfig { // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725 public static void RegisterBundles(BundleCollection bundles) { ...
iLemming's user avatar
  • 36.9k
1 vote
1 answer
975 views

I have a website running on MVC4 using the following javascript libraries. jQuery, jQueryValidate, Bootstrap, FineUploader, MaskedInput, Knockout and Modernizr. I also have my app specific javascript ...
Nick Albrecht's user avatar
1 vote
1 answer
2k views

After installing the SignalR NuGet package: Install-Package Microsoft.AspNet.SignalR -pre I get the following files: jquery.signalR-1.0.0-rc2.js jquery.signalR-1.0.0-rc2.min.js I register the ...
Carlos Nuñez's user avatar
3 votes
1 answer
5k views

We are trying to get the ScriptBundle in MVC 4 to return the expanded list of javascript when debug = false in the web.config. By default the ScriptBundle will optimize the javascript into one call ...
Ian Vink's user avatar
  • 69.1k