Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using bundling and minification in MVC4 with Jquery Mobile 1.4 to create Web Application.

In project Login Page which is not derived from Layout Page. contain 4 Bundling there are

@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/Custom")

Which Works Great but it applicable only to one Login View.

After User Logs in Other Pages derived from Master Layout. So we thought to have all .js and .css in Master Page. With above 4 bundle we added 1 more bundle.

@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/Custom")
**@Scripts.Render("~/bundles/AppCustom")**

But browser not loading @Scripts.Render("~/bundles/AppCustom") function in this file is not hitting. Please guide Me.
Posted
Comments
j snooze 3-Jun-14 17:45pm    
So you've added the ~/bundles/AppCustom to the bundle config file and referenced the appropriate css pages that go with it in the bundle config?
Ryder24 4-Jun-14 9:12am    
j snooze. yup u right. I added ~/bundles/AppCustom.

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