Gridview HyperLinkField查询字符串问题 [英] Gridview HyperLinkField querystring problem

查看:57
本文介绍了Gridview HyperLinkField查询字符串问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友..我使用了gridview超链接字段,使用查询字符串我将值传递给另一个页面。我可以在url中隐藏查询字符串吗?可能吗? PLZ建议我....



Hi friends..i used gridview hyperlink field,using query string i was pass the values to another page.Here can i hide the querystring in url? is it possible? plz suggest me....

<asp:HyperLinkField DataNavigateUrlFields="Companyid, CompanyName,ProductCode,Quantity,Soldshare"
       DataNavigateUrlFormatString="Purchaseproduct.aspx?CID={0}&CName={1}&PC={2}&Qty={3}&Sldsre={4}" Text="Pass Multiple Values"/>





*此处post方法和previouspagetype指令不起作用



*Here post method and previouspagetype directive not working

推荐答案

你可以加密查询字符串,但无法从网址中隐藏,因为从那里你正在访问另一个页面中的那个值



查询字符串将值传递给我们正在使用的另一个页面并加密值总是很有用





如果你仍然希望隐藏用户 会话 最好的想法你也可以使用cookies,但这将是一个黑客问题还有 上一页控件 ,也可以从prev访问价值ious page





问候......:)
you can encrypt query string but cannot hide from the url because from there you are accessing the value of that one in another page

query string is always useful for the passing values to another page we are using that one and encrypting values


if you still want's to hide then user sessions its best idea you can also use cookies but that will be a hacking issues also there is previous page control that can also access value from previous page


regards...:)


这篇关于Gridview HyperLinkField查询字符串问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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