ASP.NET网页时不aspx文件扩展名 [英] ASP.NET web pages without aspx file extension

查看:322
本文介绍了ASP.NET网页时不aspx文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是服务于ASP.NET网页,无需ASPX扩展最好的解决办法?我要让 的http://www.mydomain.com/mypage代替的http://www.mydomain.com/mypage.aspx

What is best solution to serve ASP.NET web pages without aspx extension? I want to make http://www.mydomain.com/mypage instead of http://www.mydomain.com/mypage.aspx

我使用.NET 2.0和IIS6

I use .NET 2.0 and IIS6

推荐答案

如果您可以升级到.NET 4.0,它有一个内置的URL路由功能,为你做它很容易,读的this由斯科特·米切尔文章

If you can upgrade to .Net 4.0,which got a built-in URL Routing feature to do it for you easily,read this article by Scott Mitchel

否则,如果你不想要移动到.NET 4.0,读<一个href=\"http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx\">this由斯科特谷的文章

otherwise if you don't want to move to .net 4.0,read this article by Scott Gu

这篇关于ASP.NET网页时不aspx文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆