开发者

Use html files from another project in ASP.NET MVC

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜