Last active
May 17, 2016 11:32
-
-
Save serkanince/deab63369b89b700c6bd76feae9e332b to your computer and use it in GitHub Desktop.
Bundle Örnek 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MvcApplication : System.Web.HttpApplication | |
{ | |
protected void Application_Start() | |
{ | |
AreaRegistration.RegisterAllAreas(); | |
RouteConfig.RegisterRoutes(RouteTable.Routes); | |
BundleConfig.RegisterBundles(BundleTable.Bundles); //Bu satırı ekliyoruz. | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Burası Önemli -> referans eklenmesi gerekir. | |
@using System.Web.Optimization; | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Bundle Örnek </title> | |
@Styles.Render("~/bundles/Css") | |
</head> | |
<body> | |
//Örnek olarak | |
@Scripts.Render("~/bundles/Js") | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment