用C#.net重写网址 [英] Url rewriting in C#.net
问题描述
大家好,
我在我的应用程序中面临来自url编写的问题.您能为我的应用程序如何进行url重写吗?我正在使用globax.asax文件进行URL重写.
在我的应用程序中,我有动态页面,例如www.frodoe.com/frodoeresult?g=hyderabad&c=Electronics&s=sony.
对于这个网址,我想重写网址,例如frodoe.com/frodoeresult/hyderabad/Electronics/sony
海得拉巴,电子,索尼正在动态变化.
您能否为上面的示例重写网址.
感谢所有人...
Hi All,
I''m facing the from url writing in my application..Can u please how to url rewriting for my appliction. and I''m using globax.asax file for url rewriting.
In my application i had dynamic pages,like www.frodoe.com/frodoeresult?g=hyderabad&c=Electronics&s=sony.
for this url i want rewrite url like frodoe.com/frodoeresult/hyderabad/Electronics/sony
the hyderabad,Electronics,sony are changing dynamically.
Can u please hoe to rewrite the url for above example.
Thanks To All...
推荐答案
阅读此处:
使用ASP.NET进行URL重写 [ MSDN:URL重写 [ URL路由 [
Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]
OR
Read about, In ASP.NET 4.0: URL Routing[^]
类似这样的 URL重写 [ mod_rewrite [
Something like this URL Rewrite[^] for IIS.
If it is for Apache Web server, check out mod_rewrite[^]
http://msdn.microsoft.com/en-us/library/ms972974.aspx [ ^ ]
使用ASP.NET进行URL重写 [ http://www.beansoftware.com/ASP.NET-Tutorials/URL- Rewriting-ASP.NET.aspx [ ^ ]
希望对您有所帮助.
http://msdn.microsoft.com/en-us/library/ms972974.aspx[^]
URL Rewriting with ASP.NET[^]
http://www.beansoftware.com/ASP.NET-Tutorials/URL-Rewriting-ASP.NET.aspx[^]
Hope this can help you.
这篇关于用C#.net重写网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!