Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 18th, 2005, 04:14 PM
Registered User
Join Date: Feb 2005
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session State|View State|Do I have other options?


Is their a better way of addressing/passing datasets from one aspx page to another than using SessionState or ViewState. The problem with SessionState requires a trip back to the server and ViewState suffers performance issues when the dataset is too big?


  #2 (permalink)  
Old August 19th, 2005, 12:08 AM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

You can use object cashing to cache the dataset.

  #3 (permalink)  
Old October 5th, 2005, 07:10 PM
Registered User
Join Date: Oct 2005
Location: , Virginia, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

I thought the object Cache could only be used for the application and not the session

I do have some questions though.

First: What is meant by a session variable requiring a round trip to the server? I thought that the only way of storing data on the users computer was with a cookie and it had to be retrieved by the application and then sent back to the server with the new page essentially making a round trip. Isn't the Session state variable stored on the server? If so why would it have to make a round trip? Doesn't the server just fill in the new page with the data before it sends it.

The second question is about the Cache object, What are the benefits of using this instead of an application variable. Both are destroyed when the application ends. The only differences I can tell are the providing of datalocks for the cache object (which would only be needed if your application is updating the data) and the fact that an application variable is created on startup while a cache object is not created until the first time it is used. The Cache object would thus have more overhead because of the locks and the Cache management.

If there is more to it than that then I need to know because it could be something I need to look at it for the application I'm working on now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
View state problem rabbit3 ASP.NET 2.0 Professional 0 October 23rd, 2007 08:55 PM
Javascript and View State VictorVictor ASP.NET 2.0 Professional 8 April 2nd, 2007 02:34 PM
how to use view state in code behind files in C# ajeshss C# 4 June 20th, 2006 06:00 AM

All times are GMT -4. The time now is 12:54 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.