ASP.NET MVC Routing - add .html extension to routes

前端 未结 4 672
别那么骄傲
别那么骄傲 2020-11-28 12:56

i am pretty new to MVC and Routing and i was asked to modify an app to use diffrent url\'s. a task that is a bit over me since i have no experience.

ok, lets talk a

4条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 13:14

    You have to force all request through the ASP.NET pipeline, and you can do that by adding only this single line to the web.config of your application:

    
      
    
    

提交回复
热议问题