Search:
Namespaces
Discussions
.NET v1.1
Feedback
Help with datasets and sessions (use of Viewstate)
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
.
edp
What is the difference between using Viewstates and Sessions ??
Do they do the same thing ??
The reason for doing it this way is so that I don't need to refill the dataset after each postback and bind the datagrid whenever I need to. Doing refills can be very slow if I have many thousands of records.
This way I can work with the dataset and only submit changes to the datasource (as well as updating locally my dataset)
Actually, I've seen some acticles on storing sessions to SQL server. Is this method recommended
CHEERS !!!
Sum Pun
------=_NextPart_000_0013_01C23D6E.2C303950
Reply to this message...
Alex Lowe
Sum Pun,
No, ViewState and Session State are not the same thing. I could explain
it but my explanation wouldn't be as good as the one found in this
article
(
http://msdn.microsoft.com/library/en-us/dnaspnet/html/asp11222001.asp
).
You should read the entire article but the area specific to your
question can be found in the "Session State or ViewState?" section of
the article.
Also, for those interested, there is an article on how you can persisit
a Dataset through ViewState at
(
http://www.aspfree.com/authors/stephen
_rylander/Persist.aspx).
Hth,
Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET
***********************************************************
Translate C# code to VB.NET code at
http://aspalliance.com/aldotnet/examples/translate.aspx
***********************************************************
-----Original Message-----
From: edp [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, August 06, 2002 5:25 AM
To: aspngDataGridRepeaterDatalist
Subject: [aspngdatagridrepeaterdatalist] Help with datasets and sessions
(use of Viewstate)
What is the difference between using Viewstates and Sessions ??
Do they do the same thing ??
The reason for doing it this way is so that I don't need to refill the
dataset after each postback and bind the datagrid whenever I need to.
Doing refills can be very slow if I have many thousands of records.
This way I can work with the dataset and only submit changes to the
datasource (as well as updating locally my dataset)
Actually, I've seen some acticles on storing sessions to SQL server. Is
this method recommended
CHEERS !!!
Sum Pun
| [aspngdatagridrepeaterdatalist] member
Click here to reveal e-mail address
=
YOUR ID |
http://www.aspfriends.com/aspfriends/aspngdatagridrepeaterdatalist.asp
=
JOIN/QUIT
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com