Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

VB
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))


The csUploadedCloseURL is being lost somewhere.
Cheers
Posted
Comments
ZurdoDev 26-Mar-12 12:03pm    
How do you know it is getting lost? Are you actually looking in the URL or do you have code looking for it?
frostcox 26-Mar-12 12:20pm    
I'm setting the parameter to a variable on page_load. On my development DB it is present but not from my customers, I debugged through the code and the URL is fully populated in both cases behind the click event of the button, cheers
ZurdoDev 26-Mar-12 12:25pm    
What version of IE? I don't know what the limit is now but previous versions of IE had a rather small limit on how long the querystring could be.
frostcox 26-Mar-12 13:00pm    
Using IE 7, yeah I hadn't considered that. But would that not just throw an error if the query string was to long?
ZurdoDev 26-Mar-12 13:57pm    
I don't think it does. I had that issue a few years ago and found it just truncated it with no error.

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900