Discussion Locked

Using the Session object in ASP

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can I use Session in changing the language to the one selected by the user? I tried a lot of ways but I think that the client-server communication is just too week. I would be glad if you could e-mail your solution as quickley as possible.

4 replies

by kirkk

Try this:

Session("Language") = Request.Form("lstLanguage")

where lstLanguage is the name of the list box on the form where the user selects the language.

Make the options like this:

English
Spanish
etc...

Then just use a select case:

Select Case Session("Language")
Case 1:

Case 2:

etc...

Hope this helps - good luck!

This discussion is closed to new replies.