Session Variable in a Javascript Popup

K

Keith

I have a session variable set on my main page which works fine, I also have
a popup window called from a text link via javascript.

For some reason the session variable is not available on the popup window.

Is this normal?
 
B

Bullschmidt

Well at least for an alert popup this should work to display a session
variable:

Response.Write "<script type='text/javascript'>alert('" &
Session("MyVar") & "');</script>"

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top