查询字符串丢失值 [英] Querystring losing values

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

问题描述

大家好,我有一个小问题,似乎无法找到答案.我有一个查询字符串,该字符串将一堆参数发送到按钮后面的下一页,但是当我尝试在下一页中读取它们时,其中一个参数丢失了.当我在开发数据库上本地运行代码时,代码可以正常运行,并且参数在那里,但是当我连接到客户数据库并运行代码时,该参数将丢失.为了快速修复,我只是将变量存储在Session中,然后以这种方式读出来,但是我只是想知道是否有人有任何想法.预先感谢你们.我的查询字符串:

Hi guys, I have a small problem that I can''t seem to find an answer to. I have a query string that sends a bunch of paramaters to the next page behind a button but when I try to read out them in the next page one of the paramaters is gettin lost. When I run the code locally on my development DB the code runs fine and the paramater is there but when I connect to my customers DB and run the code the parameter is getting lost. For a quick fix I just stored the variable in Session and read it out that way but I am just wondering if anyone has any ideas. thanks guys in advance. My query string:

Response.Redirect(ADestinations.aspx?AutoloaderFileId=" & AutoloaderFileId & _
                       "&TypeId=" & TypeId & _
                       "&RateListId=" & RateListId & _
                       "&RateListName=" & HttpUtility.UrlEncode(RateListName) & _
                       "&OutputTo=" & OutputTo & _
                       "&Letter=" & Letter & _
                       "&StatusId=" & StatusId & _
                       "&CurrentPageIndex=" & CurrentPageIndex & _
                       "&FileName=" & FileName & _
                        "&UploadedCloseURL=" & HttpUtility.UrlEncode(csUploadedCloseURL))



csUploadedCloseURL在某处丢失.
Cheers



The csUploadedCloseURL is being lost somewhere.
Cheers

推荐答案

检查查询字符串的长度.您可能超出了限制,并且已被截断.

http://stackoverflow.com/questions/812925/什么是最大查询字符串长度 [
Check the length of your query string. You may be exceeding the limit and it is getting truncated.

http://stackoverflow.com/questions/812925/what-is-the-maximum-possible-length-of-a-query-string[^]


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

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