传递值使用querystring [英] pass value use querystring
本文介绍了传递值使用querystring的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hai ...
我有问题
我想使用querystring从第一页到第二页传递值..
但我想在网络浏览器的地址栏中隐藏或加密值
我该怎么办?
hai...
i have some problem
i want pass value from page one to page two using querystring..
but i want to hidden or encrypt value in address bar on web browser
what should i do?
推荐答案
您可以使用内置的.NET加密工具对字符串进行加密.您需要在字符串上使用Server.HtmlEncode/Server.HtmlDecode
以确保加密的字符串符合HTTP.
此处 [对通过QueryString传递的信息进行加密 [
You can encrypt the string with the built-in .NET encryption tools. You''ll need to useServer.HtmlEncode/Server.HtmlDecode
on the string to ensure that the encrypted string is HTTP compliant.
Here[^] is an article on encryption in .NET.
Or else you can refer Encrypting the Information Passed through the QueryString[^]
这篇关于传递值使用querystring的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文