Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 18, 2011 02:21 AM by len5134x
Jan 17, 2007 12:40 AM|LINK
I would like to set a couple of session variables when I click an image on the page. The session variables will be equal to textboxes on the same page as the image: Here is the tag for the image.
Session("Amount") = Me.txtAmount.Text
Jan 17, 2007 01:59 AM|LINK
cant unless you use ajax.
Jan 17, 2007 05:13 AM|LINK
Jan 17, 2007 12:54 PM|LINK
Is it possible to pass the values of a couple of textboxes from one form to another without using querystring, session, ajax, or java?
What Ineed is when a page opens it invisiably gets the value of a couple of textboxes from the previous page.
I appreciate any suggestions.
Jan 18, 2007 12:05 AM|LINK
Jun 11, 2008 09:08 PM|LINK
I discovered that client and server side got communicated better than what I was originally thinking, by using Response and Request object, web app maintences client and server data integrity very well. I do verified that on server side when you want to
read client data, e.g. a cookie, you can use Request.Cookie; and vise versa when you want to set a client side cookie, use Response.Cookie.
So i dare this assumption to session, and did following client side trying in Javasript, amazingly found, it succeeded.
<%Session["tbActionItem" + "1"] = "abc"; %>
However, I am stocked when I use:
Anyone get answer?
Nov 15, 2008 05:59 PM|LINK
here you go
Nov 15, 2008 10:55 PM|LINK
var myvar = "Hey Buddy";
'<%Session["temp"] = "' + myvar +'"; %>' ;
Nov 16, 2008 04:32 AM|LINK
yeeeh it works for me why dont you run it. Make sure to Mark as answer if it works for you too.
May 15, 2009 07:41 AM|LINK
no realy it is not working like a session it is just working like normal variable.
i need to set session value in one js method and use it on body load of the next page
i am doing this on master page for making tab selected for current page