Adding Values to Session State

C

Carl Gilbert

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
 
E

Eliyahu Goldin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top