Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Persisting data between form postbacks
Message
From
12/11/2002 10:44:10
 
 
To
12/11/2002 06:46:48
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00721469
Message ID:
00721618
Views:
7
>All,
>
>I am looking for a way to persist a dataset between postbacks without using session variables.
>
>Is there a best practice for this?
>
>TIA
>
>Rex

Rex,

The MS Asp.Net Step By Step book I have says the following about persisting DataSets to sessions state.

Issues:
Caching frequently used data at the session level can be efficient, but there's little automatic control over when the data is refreshed. It's very important to consider the cost of storing a data set for each user session over the cost of retrieving the dataset from the database.

Alternative:
Use the ASP.NET cache engine to cache expensive or frequently read data. The ASP.NET cache engine provides fine-grained control over how and when data is refreshed or purged from the cache.

*************
My thoughts. I was going to say, well if you persist the DataSet to XML file, and store it in SQL Server... that might work. But then, if you use SQL Server to store state, is it really that much difference. Since it would be stored in SQL Server either way.

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform