Skip to content Skip to sidebar Skip to footer

How To Reference .html Page From .aspx Page In The Same VS2010 Solution?

This question has to do with the MVC framework and file arrangement conventions within the MVC project folders in VS 2010. It also has to do with filename\path conventions for proj

Solution 1:

You should not put content under Views that will be directly linked. Browser access to that path is blocked in Views/web.config by default, and for very good reasons: you don't want users directly loading files from there.

So you should put plain html somewhere else; perhaps in /html instead? Then link it as <a href="/html/cutepuppies.html">


Post a Comment for "How To Reference .html Page From .aspx Page In The Same VS2010 Solution?"