469,883 Members | 1,140 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,883 developers. It's quick & easy.

Adding Values to Session State

Hi

I would like to know that best way of adding data to the session state
object.

I have a page with a series of links such as:
designs.aspx?categoryID=1
designs.aspx?categoryID=2

When I get to the designs page I can then add the chosen category to the
session object and perform any other tasks based on the chosen category.

Rather than always passing the data between pages using the URL and letting
the next page update the session state, is there a way of updating the
session state when the page closes. Therefore the next page does not need
to worry about updating the session state and can just query the session
state object to retrieve any data set from the previous form, for example
the chosen category.

Regards, Carl Gilbert
Nov 19 '05 #1
1 1645
Carl,

Clicking a link tales place on client side. There is no session state on
client side. Passing parameters in the session state is good when one page
navigates to another programmatically. Then everything is happening on
server side.

Eliyahu

"Carl Gilbert" <mr*************@hotmail.com> wrote in message
news:J8*****************@newsfe4-win.ntli.net...
Hi

I would like to know that best way of adding data to the session state
object.

I have a page with a series of links such as:
designs.aspx?categoryID=1
designs.aspx?categoryID=2

When I get to the designs page I can then add the chosen category to the
session object and perform any other tasks based on the chosen category.

Rather than always passing the data between pages using the URL and letting the next page update the session state, is there a way of updating the
session state when the page closes. Therefore the next page does not need
to worry about updating the session state and can just query the session
state object to retrieve any data set from the previous form, for example
the chosen category.

Regards, Carl Gilbert

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Nhi Lam | last post: by
4 posts views Thread by John Q. Smith | last post: by
3 posts views Thread by William | last post: by
5 posts views Thread by Sean | last post: by
9 posts views Thread by cashdeskmac | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.