Session

Discussion in 'ASP General' started by vvv, Nov 3, 2003.

  1. vvv

    vvv Guest

    How can I change a session("x") with hyperlinks?

    thanks
     
    vvv, Nov 3, 2003
    #1
    1. Advertising

  2. vvv

    Evertjan. Guest

    vvv wrote on 03 nov 2003 in microsoft.public.inetserver.asp.general:

    > How can I change a session("x") with hyperlinks?


    You will have to go back to serverside,
    asp does not know about hyperlinks and
    the client does not know about session().

    ================== thispage.asp =======

    Old session "x" content: <% = session("x") %>
    <br>

    <% session("x") = request.querystring("x") %>

    New session "x" content: <% = session("x") %>

    <br>
    <a href="thispage.asp?x=qwerty">qwerty</a>
    <br>
    <a href="thispage.asp?x=asdfg">asdfg</a>

    =======================================


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Nov 3, 2003
    #2
    1. Advertising

  3. vvv

    vvv Guest

    Perfect... thanks!


    "Evertjan." <> escreveu na mensagem
    news:Xns942870EBCDE62eejj99@194.109.133.29...
    > vvv wrote on 03 nov 2003 in microsoft.public.inetserver.asp.general:
    >
    > > How can I change a session("x") with hyperlinks?

    >
    > You will have to go back to serverside,
    > asp does not know about hyperlinks and
    > the client does not know about session().
    >
    > ================== thispage.asp =======
    >
    > Old session "x" content: <% = session("x") %>
    > <br>
    >
    > <% session("x") = request.querystring("x") %>
    >
    > New session "x" content: <% = session("x") %>
    >
    > <br>
    > <a href="thispage.asp?x=qwerty">qwerty</a>
    > <br>
    > <a href="thispage.asp?x=asdfg">asdfg</a>
    >
    > =======================================
    >
    >
    > --
    > Evertjan.
    > The Netherlands.
    > (Please change the x'es to dots in my emailaddress)
     
    vvv, Nov 3, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Klemt
    Replies:
    1
    Views:
    461
    Steve C. Orr, MCSD
    Jul 23, 2003
  2. shamanthakamani
    Replies:
    1
    Views:
    3,522
    Natty Gur
    Nov 20, 2003
  3. Jeff Smythe
    Replies:
    3
    Views:
    1,288
    Jeff Smythe
    Jan 2, 2004
  4. =?Utf-8?B?Um9iSEs=?=
    Replies:
    4
    Views:
    5,344
    =?Utf-8?B?Um9iSEs=?=
    Apr 11, 2007
  5. Jazzis
    Replies:
    2
    Views:
    265
    Jazzis
    Sep 23, 2003
Loading...

Share This Page