如何在Querystring中传递长字符串值? [英] How Can I Pass Long String Value In Querystring?
本文介绍了如何在Querystring中传递长字符串值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用查询字符串将textarea值从一个页面发送到其他页面。
请帮我查询以下查询 -
>我们可以通过querystring传递超过200个字符吗?
>如果是,那么我必须更换一些像&,#,: 对?
等待回复
Hi,
I want to send textarea value from one page to other page using querystring.
Please help me with below query-
>can we pass more than 200 characters through querystring?
>if yes, then i have to replace some characters like &,#,: right?
Awaiting for reply
推荐答案
你需要编码使用Server.UrlEncode()放入查询字符串的值。你会想要研究IE的版本,因为有些人在截断它之前对URL的长度有一个非常低的限制。你最好使用Session存储和检索值。
You'll need to encode the value you put into the querystring using Server.UrlEncode(). You'll want to research the versions of IE because some had a very low limit as to how long the URL can be before it truncates it. You're much better off using the Session to store and retrieve the value.
这篇关于如何在Querystring中传递长字符串值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文