Displaying HTML pages in an ASP.Net MVC Web App
I have a simple MVC site but I need 开发者_JS百科to add in some static HTML pages, I have tried to add an IgnoreRoute in for .html files but this didn't work.
routes.IgnoreRoute("{resource}.html/{*pathInfo}"); worked for me. And place it before all other route definitions in your global.asax.
精彩评论