开发者

Displaying HTML pages in an ASP.Net MVC Web App

开发者 https://www.devze.com 2022-12-21 20:51 出处:网络
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/{*pa

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

精彩评论

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