How do I save whatever is in this link and use it for my MVC bundling?
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/jquery.ui/1.9.2/themes/blitzer/jquery-ui.css">
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery")
.Include("~/Scripts/jquery-{version}.js",
"~/Scripts/jquery-ui-{version}.js"));
}
If you have a link like so
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/jquery.ui/1.9.2/themes/blitzer/jquery-ui.css">
Then go to https://ajax.as.netcdn.com/ajax/jquery.ui/1.9.2/themes/blitzer/jquery-ui.css
Right click the page then Save As - it should be a .cs
file
After saving it, just copy it to your MVC Project inside Content
folder.
Bundle it:
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css",
"~/Content/blitzer.css"));
// This is what I added, I named my file blitzer when saving it
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.