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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top