I have an existing web forms project that is now using .net 4.5.
Using nuget I added the reference to system.web.omtimization.
I then placed in the header and also tried near my footer:
<%: Scripts.Render("~/Scripts/CaseReview") %>
Also I add the following to global.asax:
BundleConfig.RegisterBundles(BundleTable.Bundles);
I am getting: The name 'Scripts' does not exist in the current context
I can use bundling with webforms yeah?
If so what am I doing wrong/not doing?
Seems this did the job:
<%: System.Web.Optimization.Scripts.Render("~/Scripts/CaseReview") %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With