纷纷拿出页面,而不在.aspx [英] Have page come up without the .aspx

查看:99
本文介绍了纷纷拿出页面,而不在.aspx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ASP.NET Web窗体。

I am using ASP.NET Web Forms.

我有一个在这里ASPX页面需要拿出而不的.aspx 扩展的情况。

I have a situation where an ASPX page needs to come up without the .aspx extension.

下面是一个例子(不是真正的网站):

Following is an example (not real site):

  www.abc.com/firstpage

该网页实际上是所谓的 firstpage.aspx ,但我不知道如果我能把它没有的.aspx 。

The page is actually called firstpage.aspx, but I wonder if I could make it work without the .aspx.

之所以这样,是很重要的是因为邮件被罚出
www.abc.com/firstpage ,现在我需要弄清楚如何
使编程转到 www.abc.com/firstpage.aspx

The reason why this is important is because an email got sent out with www.abc.com/firstpage, and now I need to figure out how to make it programatically go to www.abc.com/firstpage.aspx.

推荐答案

如果您使用的是.NET 4.5,你可以使用Asp.net友好的网址:
HTTP://aspnetfriendlyurls.$c$cplex.com/

If you are using .net 4.5 you can use Asp.net Friendly URLS: http://aspnetfriendlyurls.codeplex.com/

这篇关于纷纷拿出页面,而不在.aspx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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