在ASP.Net中发布到服务器时截断字符串数据 [英] truncating string data while posting to server in ASP.Net

查看:55
本文介绍了在ASP.Net中发布到服务器时截断字符串数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在aspx页面中将字符串数据设置为隐藏字段。并通过提交表单将此数据发布到服务器。我通过在页面加载方法中使用请求参数来访问隐藏的

但是在页面加载方法中服务器端的sting是否被截断(几次调用随机)?



有没有遇到过这个问题?任何人都可以帮忙。



注意:在java脚本中提交页面之前和之后,字符串数据不会在java脚本变量或隐藏字段中被截断。

I am setting string data to hidden field in aspx page. and posting this data to server by submitting form. I am accessing the hidden by by using request parameters in page load method
However sting is getting truncated (randomly for few calls) at the server end in Page load method?

Do have any faced this issue ever? Can anyone please help in this.

Note: Before and after submitting page in java script, String data is not truncated in java script variable or hidden field.

推荐答案

隐藏参数可以在空格处截断。

检查 this [ ^ ] out。
Hidden parameters can be truncated around spaces.
Check this[^] out.


这篇关于在ASP.Net中发布到服务器时截断字符串数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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