Web Forms based web application URLs without the “.aspx” like stackoverflow.com

后端 未结 4 1041
伪装坚强ぢ
伪装坚强ぢ 2021-01-15 18:07

I\'d like to know if it is possible to have the URLs of the pages of a Webforms application display without the .aspx extension.

For instace, htt

相关标签:
4条回答
  • 2021-01-15 18:37

    This can be done by using either ASP.NET MVC or the routing engine by itself.

    0 讨论(0)
  • 2021-01-15 18:38

    The technology that stackoverflow uses has been discussed many many times, what you are looking for is the ASP.Net MVC Framework

    http://www.asp.net/mvc

    https://stackoverflow.com/questions/tagged/asp.net-mvc

    This can also be done using URL rewriters

    http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

    0 讨论(0)
  • 2021-01-15 18:51

    This is generally done using a routing engine in a framework. However if you want to do this for an arbitrary application it's really done using Apache's Mod_Rewrite.

    0 讨论(0)
  • 2021-01-15 18:52

    You want Asp.Net Routing. Best place to start is here: http://haacked.com/Tags/Routing/default.aspx

    If you are using IIS7 it is easy. IIS6 requires a little more work.

    0 讨论(0)
提交回复
热议问题