Use html files from another project in ASP.NET MVC
I know that I can use regular html files in ASP.NET MVC; however I have a situation where static display requires multiple (over 20) html files. This is nice and good, but I really don't want it to clutter up the MVC project as neither will have a controller action.
Is there a way to load a second project and use static html files from it in ASP.NET MVC?
+2
a source to share
1 answer
I know my answer is not directly related to your question as you are asking how to access HTML pages from a second project. But the alternative would be to put the html files in your content directory. This way you can catalog your static html pages
For an instance:
MVC Directory Structure
Content
images
logo.png
script
utility.js
staticHtml
static.html
static2.html
Model
Views
+1
a source to share