Session variable in javascript

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Session variable in javascript

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


    sramruttun Guest

  2. Similar Questions and Discussions

    1. #39634 [NEW]: session variable and normal variable
      From: erhanbaris at gmail dot com Operating system: Win Xp SP1 PHP version: 5.2.0 PHP Bug Type: Variables related Bug...
    2. Need to get variable to Javascript to swf
      I need to get a simple variable from JavaScript into a swf. Simple enough, right? Somehow it isn't working properly for me. Here's the JavaScript: ...
    3. passing javascript variable into asp variable using vbscript
      The subject pretty much sums up what I need to do. Here is what I have so far, but still can't figure out how to get it working: <script...
    4. Datalist - how (if) to use a sub variable or session variable in the footer?
      Hi, sorry to be greedy with all my posts lately, but can you tell I'm doing new things this week? I've just done my first datalist (a simple...
    5. [SESSION] Session variable deleted prior to command?
      Hi all, I'm developing a database system on my local computer (OS/version details at bottom) with a simple user authentication using sessions. On...
  3. #2

    Default Re: Session variable in javascript


    "sramruttun" <sramruttun@yahoo.com> wrote in message
    news:%23HNeXvZVDHA.2228@TK2MSFTNGP12.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


    Luc Kumps Guest

  4. #3

    Default 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@yahoo.com> wrote in message
    news:%23HNeXvZVDHA.2228@TK2MSFTNGP12.phx.gbl...
    > How can retrieve a Session value in javascript which I had set in
    > code-behind ?
    >
    >

    abacnet Guest

  5. #4

    Default Re: Session variable in javascript

    [url]http://www.dotnet247.com/247reference/msgs/5/26815.aspx[/url]
    [url]http://www.w3schools.com/aspnet/control_htmlinputhidden.asp[/url]

    Luc K

    "sramruttun" <sramruttun@yahoo.com> wrote in message
    news:uJUt%236mVDHA.2268@TK2MSFTNGP11.phx.gbl...
    > thanks luc for the consideration
    >
    > can u give me a small piece of code?
    >
    >
    > "Luc Kumps" <NOkumpsSPAM@pandora.be> wrote in message
    > news:hGoVa.38995$F92.4038@afrodite.telenet-ops.be...
    > >
    > > "sramruttun" <sramruttun@yahoo.com> wrote in message
    > > news:%23HNeXvZVDHA.2228@TK2MSFTNGP12.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

    Luc Kumps Guest

  6. #5

    Default Re: Session variable in javascript

    thanks Luc - the links have been helpful

    "Luc Kumps" <NOkumpsSPAM@pandora.be> wrote in message
    news:T6MVa.41177$F92.4366@afrodite.telenet-ops.be...
    > [url]http://www.dotnet247.com/247reference/msgs/5/26815.aspx[/url]
    > [url]http://www.w3schools.com/aspnet/control_htmlinputhidden.asp[/url]
    >
    > Luc K
    >
    > "sramruttun" <sramruttun@yahoo.com> wrote in message
    > news:uJUt%236mVDHA.2268@TK2MSFTNGP11.phx.gbl...
    > > thanks luc for the consideration
    > >
    > > can u give me a small piece of code?
    > >
    > >
    > > "Luc Kumps" <NOkumpsSPAM@pandora.be> wrote in message
    > > news:hGoVa.38995$F92.4038@afrodite.telenet-ops.be...
    > > >
    > > > "sramruttun" <sramruttun@yahoo.com> wrote in message
    > > > news:%23HNeXvZVDHA.2228@TK2MSFTNGP12.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
    >
    >

    sramruttun Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139