Session("Amount") = Me.txtAmount.Text
cant unless you use ajax.
Lead Application Developer
But can be done indirectly, e.g., store it in a hidden filed, submit it to the server, and retrieve and assign the values in hidden filed to session.
Hope it helps.
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.
There is a new feature called cross page postback in asp.net 2.0, it may meet your need.
Working with Cross Page Posting Using ASP.NET 2.0
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?
here you govar myvar = "Hey Buddy"; '<%Session["temp"] = "' + myvar +'"; %>' ;
MuhammadHassan:var myvar = "Hey Buddy"; '<%Session["temp"] = "' + myvar +'"; %>' ;
http://73rdstreet.com and blogging at
yeeeh it works for me why dont you run it. Make sure to Mark as answer if it works for you too.