基于Web的应用程序的URL没有Web窗体"&的.aspx QUOT;像stackoverflow.com [英] Web Forms based web application URLs without the ".aspx" like stackoverflow.com
问题描述
我想知道是否有可能有一个Web表单应用程序显示的无的.aspx
延长网页的网址。
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.
有关instace, http://stackoverflow.com/questions/ask
而不是 http://stackoverflow.com/questions/ask。 ASPX
For instace, http://stackoverflow.com/questions/ask
instead of http://stackoverflow.com/questions/ask.aspx
推荐答案
这计算器使用的技术已经讨论过很多很多次,你正在寻找的是在ASP.Net MVC框架
The technology that stackoverflow uses has been discussed many many times, what you are looking for is the ASP.Net MVC Framework
<一个href=\"http://stackoverflow.com/questions/tagged/asp.net-mvc\">http://stackoverflow.com/questions/tagged/asp.net-mvc
这也可以使用URL rewriters完成
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
这篇关于基于Web的应用程序的URL没有Web窗体&QUOT;&的.aspx QUOT;像stackoverflow.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!