Passing data via cookies from ASP to ASPX page.

  • Thread starter Thread starter Jim Mitchell
  • Start date Start date
J

Jim Mitchell

I save a cookie in my intro ASP page, but I can not seem to read it from my
ASPX page.

In ASP....

Response.Cookies("S2")("UserCompanyID")=rs("Level1")

In the target ASPX page I have....

Dim Cookie2 As HttpCookie

Cookie2 = Request.Cookies("S2")

txtTerrID.Text = Cookie2.Values("UserCompanyID")



I am not able to read txtTerrID.text

Thanks in advance.
 
Back
Top