When you previously wrote an ASP. NET Web page, many style files or JavaScript files, such as the reference statement for the opening brace, are referenced in the
Now in an MVC application, you can use bundles to bundle together and find the App_start directory under the Solution Explorer window application. Under this directory, create a class named "BundleConfig.cs" and modify the Namespace:Insus.NET
The name of the blue underline in the #11 line will be the name of the View app. Next, we open the Global.asax.cs file, divided into three steps, the first is to refer to namespace, because just write BundleConfig.cs class, is used Insus.net namespace; the second step is to refer to another namespace "System.Web.Optimization" because the registration parameter bundletable is under this namespace.
The third step is to write the #21 line code:
Bundleconfig.registerbundles (Bundletable.bundles);
Once all is configured, you can use it in the view's file or local file.
The last thing to add is the bundle JS file example: