Cookies

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a cookie that has been set by an ASP application. I am successfully
able to retrieve the value of that cookie, however when I display it on the
page using a Text Label, I get HEX values like "shahid%2Ejuma"

The actual value stored in the cookie is "shahid.juma". Apparently any "."
that I have converts it to %2E.

The way I am retrieiving the cookie is:

HttpCookie userCookie = Request.Cookies["UserName"];
Session["UserName"] = userCookie.Value.ToString();

Thank you in advance for the help
Shahid
 
Thanks,

I had a look and I tried the Server.HTMLEncode method but it sill prints the
same.

Shahid
 
Back
Top