Hide Page Extensions (Like StackOverflow)

前端 未结 6 1334
故里飘歌
故里飘歌 2020-12-07 04:42

I want to hide page extensions like stackoverflow does. How does the following work?

http://stackoverflow.com/tags/foo
http://stackoverflow.com/tags/bar
         


        
6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 04:56

    That's the beauty and the work of ASP.NET MVC.

    No "hiding" - it's just the way ASP.NET MVC handles URL's and maps those "routes" to controller actions on your controller classes.

    Quite a big step away from the "classic" ASP.NET Webforms way of doing things.

提交回复
热议问题