2

I know that I can use normal html files in ASP.NET MVC; however I have a situation where several (above 20) html files are needed for static display. This is fine and good, but I really don't want it cluttering the MVC project since none of them will have controller actions.

Is there any way to load up a second project and use static html files from it, within ASP.NET MVC?

1 Answer 1

1

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 an alternate would be to place the html files in your content directory. This way you could catalog your static html pages

For Instance:

MVC Directory Structure
   Content
     images
       logo.png
     script
       utility.js
     staticHtml
       static.html
       static2.html
   Model
   Views
Sign up to request clarification or add additional context in comments.

1 Comment

Yeah, I can do that. It works fine; I was just hoping to find something that my OCD could actually live with. I did it for another project and it worked, but it's such a hassle to manage. Ideally I'd like to just set up another project in Visual Studio and be able to manage the html/aspx files in there, and it publish with the MVC project as a merged directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.