Results 1 to 2 of 2

Thread: How can I use session variables in vbscript

  1. #1

    Thread Starter
    Addicted Member wernerh's Avatar
    Join Date
    Sep 2000
    Posts
    170

    Question How can I use Session Variables in Client script

    Hi there, I am still learning ASP. Can anyone tell me how to use Session Variables that I create in a ASP page, in client-side scripting? For example:
    <SCRIPT language=vbs>
    If Session("Checked") = "1" then.......

    .....
    .........
    </Script>

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You can't use session variables in client side scripting. Only server side. Although you can response.write the value from a session variable into client side script but only when it is being generated on the server side and before it is sent to the browser.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width