Is there a way to share a master page between different MVC projects / applications?
We have many different applications, and they want to share those same headers and footers on web pages.
What is the best way to handle this situation with ASP.NET MVC?
I do not believe you can share master pages, but I do something like this with MVC Have done / P>
I have a website project and administrative project, both are MVC 2 applications. I have a master page for both projects. Then I am creating a "ResourceURL" app setting in web.config from there. I use all the "resource" assets with that configuration entry. Now I store all my web files as CSS, script, image etc. in the form of a website project and both of them Extend terms of projects.
It also works well to allow for a CDN integration beneath the line
Comments
Post a Comment