如何使用asp.net重写URL [英] how to do URL rewritting using asp.net
本文介绍了如何使用asp.net重写URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我想重写我的网址,而在我的网址中没有显示ID字段
例如:
来自-http://www.domain.com/page.aspx?id=1&title=xyz
到-http://www.domain.com/xyz.aspx
这样就可以在没有id的情况下重写url
请任何人都可以帮助我............
Hi
I want to rewrite my url without display id field in my url
for example:
From - http://www.domain.com/page.aspx?id=1&title=xyz
To - http://www.domain.com/xyz.aspx
So is it possible to rewrite url without id filed
Plz anyone can help me............
推荐答案
请参阅这篇文章,其中介绍了所有内容:
http://msdn.microsoft.com/en-us/library/ms972974.aspx [ ^ ].
—SA
Please see this article which explains everything:
http://msdn.microsoft.com/en-us/library/ms972974.aspx[^].
—SA
阅读此处:
使用ASP.NET进行URL重写 [ MSDN:URL重写 [ URL路由 [ CP搜索 [ ^ ]
..以及 ^ ]
Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]
OR
Read about, In ASP.NET 4.0: URL Routing[^]
..and more similar threads on CP Search[^]
..and even more threads on google[^]
这篇关于如何使用asp.net重写URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文