Session variable in javascript

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

    #1

    Session variable in javascript

    How can retrieve a Session value in javascript which I had set in
    code-behind ?


  • Luc Kumps

    #2
    Re: Session variable in javascript


    "sramruttun " <sramruttun@yah oo.com> wrote in message
    news:%23HNeXvZV DHA.2228@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > How can retrieve a Session value in javascript which I had set in
    > code-behind ?[/color]

    By putting it into a hidden field from the code-behind?

    Luc K


    Comment

    • abacnet

      #3
      Re: Session variable in javascript

      Session variables are mainly used on the Server side. You may use cookies if
      you need to read them from the client in Javasript.

      "sramruttun " <sramruttun@yah oo.com> wrote in message
      news:%23HNeXvZV DHA.2228@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > How can retrieve a Session value in javascript which I had set in
      > code-behind ?
      >
      >[/color]


      Comment

      • Luc Kumps

        #4
        Re: Session variable in javascript




        Luc K

        "sramruttun " <sramruttun@yah oo.com> wrote in message
        news:uJUt%236mV DHA.2268@TK2MSF TNGP11.phx.gbl. ..[color=blue]
        > thanks luc for the consideration
        >
        > can u give me a small piece of code?
        >
        >
        > "Luc Kumps" <NOkumpsSPAM@pa ndora.be> wrote in message
        > news:hGoVa.3899 5$F92.4038@afro dite.telenet-ops.be...[color=green]
        > >
        > > "sramruttun " <sramruttun@yah oo.com> wrote in message
        > > news:%23HNeXvZV DHA.2228@TK2MSF TNGP12.phx.gbl. ..[color=darkred]
        > > > How can retrieve a Session value in javascript which I had set in
        > > > code-behind ?[/color]
        > >
        > > By putting it into a hidden field from the code-behind?
        > >
        > > Luc K[/color][/color]


        Comment

        • sramruttun

          #5
          Re: Session variable in javascript

          thanks Luc - the links have been helpful

          "Luc Kumps" <NOkumpsSPAM@pa ndora.be> wrote in message
          news:T6MVa.4117 7$F92.4366@afro dite.telenet-ops.be...[color=blue]
          > http://www.dotnet247.com/247reference/msgs/5/26815.aspx
          > http://www.w3schools.com/aspnet/cont...nputhidden.asp
          >
          > Luc K
          >
          > "sramruttun " <sramruttun@yah oo.com> wrote in message
          > news:uJUt%236mV DHA.2268@TK2MSF TNGP11.phx.gbl. ..[color=green]
          > > thanks luc for the consideration
          > >
          > > can u give me a small piece of code?
          > >
          > >
          > > "Luc Kumps" <NOkumpsSPAM@pa ndora.be> wrote in message
          > > news:hGoVa.3899 5$F92.4038@afro dite.telenet-ops.be...[color=darkred]
          > > >
          > > > "sramruttun " <sramruttun@yah oo.com> wrote in message
          > > > news:%23HNeXvZV DHA.2228@TK2MSF TNGP12.phx.gbl. ..
          > > > > How can retrieve a Session value in javascript which I had set in
          > > > > code-behind ?
          > > >
          > > > By putting it into a hidden field from the code-behind?
          > > >
          > > > Luc K[/color][/color]
          >
          >[/color]


          Comment

          Working...