View Full Version : How to read a value from text box & set a session type var that stays after refresh?

05-15-2009, 11:53 AM

I'm presently working on an existing web mapping site written in 'old' asp (not .net) using JavaScript on server side and JavaScript on client.

I'm more familiar with .net and vb, rusty with both 'old' asp and JavaScript so please forgive me if this question is too easy!

I need to set variables from web page tools, (e.g. a combo box) that have been coded in client JavaScript then save those variable back to the server as something like a session or application var. As when the page is refreshed (every time the map is paned for e.g.) I need the selected variable to stay and not have the user have to reset it every time.

Could some body please show me some basic code on how to achieve this as its driving me mad!

I havent posted any code as I dont real know where to start!

I have no problem passing session vars from asp to the page but not collecting data from the page and saving back to server.

Any help / advice would be much appreciated.


05-15-2009, 01:31 PM
Would cookies do your job?