Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Part of one variable in response.write query string is missing 1

Status
Not open for further replies.

Coder7

Programmer
Oct 29, 2002
224
US
Hello. I'm stumped. Any help would be greatly appreciated.

]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
Here's the code:

Sub Display_Error_Page(lngErrorCode, strErrorDesc, strSub)
Dim strMsg

strMsg = strSub & "<BR>" & strErrorDesc

-------begin comments
'this response.write is just to display the value of sLogonInfo so I know what value should be passed in the query string
'july13 test
'Response.Write("slogoninfo = " & sLogonInfo & "<br>")
'july13 end
-------end comments

Response.Redirect "/BEPerformEval/Includes/Error.asp?Page=" & strCurrPage & "&Err=" & CStr(lngErrorCode) & "&Desc=" & strMsg & "&sLogonInfo=" & sLogonInfo
End sub
]]]]]]]]]]]]]]]]END OF CODE

All values in the query string are coming over to error.asp fine EXCEPT for the value of sLogonInfo. I am getting only the value of the 1st field in the concatenanted sLogonInfo string. SLogonInfo is a concatenated string of many data values (that can get somewhat long) that I display as an html comment so that I can debug in QA and Prodcution.

i.e. sLogonInfo = 'sSessionId = 12skdfj9348370243sdk
user logon id = abc1234
user name = george

What I get on error.asp for the querystring value of sLogonInfo = 'sSessionId = 12skdfj9348370243sdk

?????
 
If you are only getting the first value maybe theres a problem with whatever you are using to seperate the various values. Can you post an exact copy of the querystring so we can have a look?
 
Thanks for looking at this! Here's the info you asked for.

What SHOULD be passed from asp page 1 to error.asp is this:

slogoninfo = sSessionId: 1234bbb342344ddd sSLConn: Provider = MyProvider.1;Integrated Security = XXXX;Persist Security Info=False;Initial Catalog=Logons_Test;Data Source=LogonsTest;Locale Identifier=1234;Connection Timeout=15;Use Procedure for Prepare=1;Auto Translate=True;App=Test_MyApplication sUserId in getAKAName: myname sAKAName: thisname blnIsUserAuth 1585: True blnIsUserAuth 1586: False blnIsUserAuth 1587: False blnIsUserAuth 1588: False blnIsUserAuth 1589: False

What I'm getting on error.asp is:
slogoninfo = sSessionId: 1234bbb342344ddd

Could that have something to do with my use of vbcrlf at the end of each step of the concatenation to that each varible is displayed on its own line for legibility?
 
yes, there is no way that the querystring can cope with a vbcrlf, perhaps you could jsut replace all vbcrlf with [nl] (or whatever you want) and then replace back on the following page and see if that works
 
That's great news!! Thanks SO much. Have a great weekend.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top