Passing data via cookies from ASP to ASPX page.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Mitchell

    #1

    Passing data via cookies from ASP to ASPX page.

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

    In ASP....

    Response.Cookie s("S2")("UserCo mpanyID")=rs("L evel1")

    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.




  • Jim Mitchell

    #2
    Re: Passing data via cookies from ASP to ASPX page.

    Please disregard the post. This works find.


    "Jim Mitchell" <jim_mitchell@m indspring.com> wrote in message
    news:%23iR0BZ9W DHA.2284@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > I save a cookie in my intro ASP page, but I can not seem to read it from[/color]
    my[color=blue]
    > ASPX page.
    >
    > In ASP....
    >
    > Response.Cookie s("S2")("UserCo mpanyID")=rs("L evel1")
    >
    > 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.
    >
    >
    >
    >[/color]


    Comment

    Working...