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:
<%Session["tbActionItem" + "(i + 1)"] = "abc"; %> // i is a var in the javascript.
So my question is how to involve a javascript variable in a inbed session index?
haiwag
Member
20 Points
9 Posts
Re: How can I set session variables with JavaScript
Jun 11, 2008 09:08 PM|LINK
Hi Jack,
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:
<%Session["tbActionItem" + "(i + 1)"] = "abc"; %> // i is a var in the javascript.
So my question is how to involve a javascript variable in a inbed session index?
Anyone get answer?