Get Session Variable Value

S

Shapper

Hello,

In my Global.asax I set a Session variable named "culture" which has the
current culture being used in my web site.

In my HTML page I need to preload the images for the current culture.

I have this:
<body onload="preloadImages()">

How can I send the value in Session(culture) to my javascript function?

Something like:
<body onload="prealodImages( Session(culture) Value )>


I need to do something like this because the images to preload are
different for each culture.

Can someone help me out?

If you think this is should be done in other way let me know how.

Thanks,
Miguel
 

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

Top