Click here to Skip to main content
15,867,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
how to add styles and scripts in asp.net web forms
i adding bundleconfig.cs but not working in asp.net webforms
bundles.Add(new ScriptBundle("~/Scripts/Customscripts").Include(
"~/Scripts/tooltrip.js",
"~/Scripts/bootstrap.js",
"~/Scripts/bootstrap.min.js",
"~/Scripts/jquery-{version}.js",
"~/Scripts/jquery-{version}.min.js",
"~/Scripts/jquery-ui.js",
"~/Scripts/jquery-ui.min.js",
"~/Scripts/modernizr-{version}.js",
"~/Scripts/modernizr.custom.js"
));
 
bundles.Add(new StyleBundle("~/Content/Costomtyles").Include(
"~/Content/bootstrap-social.css",
"~/Content/bootstrap-social.less.css",
"~/Content/bootstrap.css",
"~/Content/bootstrap.min.css",
"~/Content/component.css",
"~/Content/default.css",
"~/Content/jquery-ui.css",
"~/Content/jquery-ui.min.css",
"~/Content/jquery-ui.structure.css",
"~/Content/jquery-ui.theme.css",
"~/Content/Site.css",
"~/Content/ValidationEngine.css"
));
 
in home.aspx
<asp:Content ContentPlaceHolderID="customs" runat="server">
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/Scripts/Customscripts") %>
<%: Styles.Render("~/Content/Costomtyles") %>
</asp:PlaceHolder>
</asp:Content>

but not working plz help me
Posted
Comments
iamvinod34 14-Jul-15 1:37am    
read my question sir...

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900