跳到主要內容

ASP.NET USE BonduleConfig.cs / Bondule.config

BonduleConfig.cs :------------------------------------------------------------

bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                   "~/Scripts/jquery-{version}.js"));

bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                    "~/Scripts/jquery-ui-{version}.js"));



 Bondule.config:------------------------------------------------------------

<styleBundle path="~/Content/css">
      <include path="~/Content/bootstrap.css" />
      <include path="~/Content/Site.css" />
  </styleBundle>



xxx.aspx------------------------------------------------------------

<asp:PlaceHolder runat="server">     
     
         <%: Scripts.Render("~/bundles/jquery") %>
         <%: Scripts.Render("~/bundles/jqueryui") %>

         <%: Styles.Render("~/Content/css",  "~/Content/themes/base/css") %>

</asp:PlaceHolder>