开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜