Hello,
In my asp page, I get client reference # input and save to a session variable like this:
strClientRef = server.HTMLEncode(Trim(Request("txtCliRefNo"
))
Session(Application("cstCURRCLIREFNO"
) = strClientRef
Any character is allowed in the client Reference input and the limit size is 4 . so "123&" is allowed. The session variable maybe used many places that is why we need to make it encoded.
The problem is that later we need to save the value to Database (another page, we can only access the session value). but "123&" becomes to be "123&" which exceeds the maximum size.
Can anybody tell me that how I can decode the session value? I tried server.HTMLDecode(Session(Application("cstCURRCLIREFNO"
)), but it seems asp doesn't have HtmlDecode function which asp.net has.
I am not allowed to set another session variable to hold the client input without encoding it.
Please help me, it is very urgent. thanks a million.
Yuli
In my asp page, I get client reference # input and save to a session variable like this:
strClientRef = server.HTMLEncode(Trim(Request("txtCliRefNo"
Session(Application("cstCURRCLIREFNO"
Any character is allowed in the client Reference input and the limit size is 4 . so "123&" is allowed. The session variable maybe used many places that is why we need to make it encoded.
The problem is that later we need to save the value to Database (another page, we can only access the session value). but "123&" becomes to be "123&" which exceeds the maximum size.
Can anybody tell me that how I can decode the session value? I tried server.HTMLDecode(Session(Application("cstCURRCLIREFNO"
I am not allowed to set another session variable to hold the client input without encoding it.
Please help me, it is very urgent. thanks a million.
Yuli