Forums
This topic is locked
Easier way to set Session Variables?
Posted 09 Jun 2002 06:22:59
1
has voted
09 Jun 2002 06:22:59 aegis kleais posted:
In my quest to keep any and all variables OUT of the URL, I was wondering what the best method of setting a session variable in the following instance.I have a repeat record of files, and the first cell has a VIEW that has a dynamic hyperlink to
javascript:setValue(<%=(rcdTicket.Fields.Items("ticketID".Value)%><img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
And well enough, looking through the links, I see that they link to
javascript:setValue(1)
javascript:setValue(2)
javascript:setValue(3)
....and so on.
But what I want to do is have the javascript (or any other method) set Session("ticketID" equal to the value sent to the Javascript function. ie, clicking on the link for javascript:setValue(2) would set the Session("ticketID" = 2
Any help?
Replies
Replied 09 Jun 2002 20:08:43
09 Jun 2002 20:08:43 aegis kleais replied:
Nevermind all....I am the man in demand...
I just had it call a javascript which :
1. Changed a hidden form value to the passed value
2. Submit the form (which the ACTION = the page I was on
So before the HTML started, I had ASP code check to see Request.Form("hidden" and from there use Session("ticket" = value passed.
WHO DA MAN!!?!? WHO DA MAN!?!???!
I just had it call a javascript which :
1. Changed a hidden form value to the passed value
2. Submit the form (which the ACTION = the page I was on
So before the HTML started, I had ASP code check to see Request.Form("hidden" and from there use Session("ticket" = value passed.
WHO DA MAN!!?!? WHO DA MAN!?!???!