将URL从超链接导航URL传递到其他页面时,如何隐藏URL详细信息. [英] how to hide url details when url is passed from hyperlinks navigation url to other page.

查看:75
本文介绍了将URL从超链接导航URL传递到其他页面时,如何隐藏URL详细信息.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当将URL从超链接导航URL传递到其他页面时,如何隐藏URL详细信息.

实际上,我正在将值从该导航URL传递到其他页面,但是在下一页中可以看到这些值.因此无论如何都可以在url中隐藏此参数.请帮助我找到此解决方案

在此先感谢.....

how to hide url details when url is passed from hyperlinks navigation url to other page.

Actually i m passing values from this navigation url to other page but in next page that values are seen. so is there anyway to hide this parameters in url. please help me to find this solution

Thanks in advance.....

推荐答案

亲爱的朋友,

您需要实现URL重写的功能.我向您发送了相同的链接,以便在您要应用的ASP.Net的任何版本中实施该链接.如果您使用的是4.0版的.Net,则很容易实现.

http://www.cshandler.com/2011/08/easy-steps-to-url-rewriting-in-aspnet.html [在ASP.NET 2.0中进行URL重写 [ ^ ]

http://www.4guysfromrolla.com/articles/011007-1.aspx [ ^ ]

使用ASP.NET路由进行URL重写 [ IIS与ASP.NET URL重写 [
Dear Friend,

You need to implement the functionality of URL rewriting. I am sending you the links for the same to implement in which ever version of ASP.Net you want to apply. If you are using 4.0 version of .Net then it is very easy to implement.

http://www.cshandler.com/2011/08/easy-steps-to-url-rewriting-in-aspnet.html[^]

URL Rewriting in ASP.NET 2.0[^]

http://www.4guysfromrolla.com/articles/011007-1.aspx[^]

URL rewriting using ASP.NET routing[^]

IIS vs. ASP.NET URL Rewriting[^]

If it helps you out then mark this as your answer. All queries to it are welcome

Thanks


如果您使用的是.net 2.0或.net 3.5,以下链接肯定对您有用.
http://www.cshandler.com/2011/08/easy-steps-to-url-rewriting-in-aspnet.html [
If you are working on .net 2.0 or .net 3.5 the following link will definitely work for you.
http://www.cshandler.com/2011/08/easy-steps-to-url-rewriting-in-aspnet.html[^]


Use  Server.Transfer in code that will hide your 
parameter on the URL
Server.Transfer("page2.aspx?id=123");


这篇关于将URL从超链接导航URL传递到其他页面时,如何隐藏URL详细信息.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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