ASP.Net和C#中的URL重写 [英] URL Rewriting in ASP.Net and C#
本文介绍了ASP.Net和C#中的URL重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有默认welcome.aspx页的网站(www.mywebsite.com/welcome.aspx).现在,如果有人访问我的网站,则意味着我要显示welcome.aspx,但地址栏中的URL不应显示"welcome.aspx".
我正在使用ASP.Net和C#3.5.
在此先感谢.
Manoj
Hi,
I have a website with default welcome.aspx page (www.mywebsite.com/welcome.aspx). Now if anyone visits my site means I want to show welcome.aspx but the URL in address bar should not show "welcome.aspx".
Am using ASP.Net and C# 3.5.
Thanks in Advance.
Manoj
推荐答案
导航以下链接:
提示/技巧:使用ASP进行网址重写.NET
ASP.NET中的URL重写
如需进一步的帮助,请随时给我ping通.
navigate the following links:
Tip/Trick: Url Rewriting with ASP.NET
URL Rewriting in ASP.NET
For further help please feel free ping me.
正如您正确说的那样,您需要 URL重写.
在此处阅读: CP:使用ASP.NET重写URL [ MSDN:URL重写 [ URL路由 [
As you rightly said, you need URL Rewriting.
Read here: CP: URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]
OR
Read about, In ASP.NET 4.0: URL Routing[^]
这篇关于ASP.Net和C#中的URL重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文