如何在asp.net中隐藏查询字符串 [英] how to hide query string in asp.net

查看:107
本文介绍了如何在asp.net中隐藏查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面有一个查询字符串.

Response.Redirect("http://localhost:52009/oms_trail/welcone.aspx?&vid =" + vendorid +&sid =" + surveyid +&mcid =" + uniqeid +");

而且我想什么时候response.redirect execte比隐藏变量值.

查询字符串显示如下:

Response.Redirect("http://localhost:52009/oms_trail/welcone.aspx")

并注意我使用server.transfer但它不起作用.

i have a query string given below.

Response.Redirect("http://localhost:52009/oms_trail/welcone.aspx?&vid=" + vendorid + "&sid=" + surveyid + "&mcid=" + uniqeid + "");

and i want when response.redirect execte than hide the variable value.

query string show like this:

Response.Redirect("http://localhost:52009/oms_trail/welcone.aspx")

and note i use the server.transfer but it is not worked.

推荐答案

是的,您可以使用URLRewriting technique
隐藏查询字符串
URLRewriting可以通过多种方式完成.检查下面的链接.

点击我 [ ^ ]
Yes, you can hide Querystring using URLRewriting technique

URLRewriting can be pull off using many ways. check the link below.

Click me[^]


You can use Server.Transfer Method for hide Query String





Server.Transfer("http://localhost:52009/oms_trail/welcone.aspx?&vid=" + vendorid + "&sid=" + surveyid + "&mcid=" + uniqeid + "");


U无法隐藏查询字符串..........
您可以在此处执行的操作是将您的变量存储在会话中
U cannot hide query string..........
What u can do here is store u r variables in session


这篇关于如何在asp.net中隐藏查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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