没有 aspx 文件扩展名的 ASP.NET 网页 [英] ASP.NET web pages without aspx file extension

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

问题描述

在没有 aspx 扩展的情况下为 ASP.NET 网页提供服务的最佳解决方案是什么?我想制作 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 路由功能可以轻松地为您完成,请阅读 这篇 Scott Mitchel 的文章

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,请阅读 这篇 Scott Gu 的文章

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

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

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