Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Adding Values to Session State

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carl Gilbert - 20 Jul 2005 11:59 GMT
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
Eliyahu Goldin - 20 Jul 2005 12:46 GMT
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

> Hi
>
[quoted text clipped - 16 lines]
>
> Regards, Carl Gilbert

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.