Hi Everyone,
I insert the following line into a cookie.
"http://localhost/Kanatan/product_list.aspx?Action=product_list&category_id=1002" <== Line (1)
But when I read this line back from a cookie. I get
http://localhost/Kanatan/product_list.aspx?Action=product_list
How can I get the whole line like Line (1).
Thanks,
May
run the string through HttpServerUtility.UrlEncode before you add it to the cookie and then use HttpServerUtility.UrlDecode when you read it back out. This should preserve the ampersand.
0 comments:
Post a Comment