开发者

Use html files from another project in ASP.NET MVC

开发者 https://www.devze.com 2022-12-30 00:22 出处:网络
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 do开发者_如何转

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 do开发者_如何转开发n'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?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消