I am trying to put in some optimization into my application by using BundlesCollection
in my ASP.Net 4.0
application.
My style bundle contains 6 css files. The files are included into a master page. If I remove the CSS files from master page and instead put following:
<%= Styles.Render("~/bundles/css/default") %>
I am getting following error:
The Controls collection cannot be modified because the control contains code
blocks (i.e. <% ... %>).
start the code block with <%#
instead of <%=