Reputation: 1448
I have a website which has both asp and aspx pages. Can I use System.Web.Optimization, Combres etc frameworks for both.
Another problem is that these pages doesn't have code-behind as they are generated from the same template at deployment time. Also, I don't have any bin folder at root of website, but at individual virtual directories in IIS. That is, my root of website only has these static asp/aspx files, global.ascx, web.config, css and js files.
So, I can't use something like below because these DLL's doesn't exist at root bin folder:
<%=System.Web.Optimization.Scripts.Render("~/AdminJS.js")%>
<%=Url.CombresLink("AdminJS") %>
A simple solution like <script type='text/javascript' src='/cms/bundling/scripts/admin.js?v=123'></script>
Let me know if more clarity is required.
It shall be great help if I could implement these frameworks.
Upvotes: 1
Views: 445