The Artima Developer Community
Sponsored Link

.NET Buzz Forum
ASP.NET ViewState in a Session

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Zeiß

Posts: 44
Nickname: danielz
Registered: Jan, 2006

Daniel Zeiß is author of ComfortASP.NET
ASP.NET ViewState in a Session Posted: Jan 10, 2006 1:51 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Daniel Zeiß.
Original Post: ASP.NET ViewState in a Session
Feed Title: Daniel's Blog
Feed URL: /error.aspx?aspxerrorpath=/danielz/Rss.aspx
Feed Description: ComfortASP.NET - AJAX for all
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Daniel Zeiß
Latest Posts From Daniel's Blog

Advertisement

Hello,

some words about the new feature for ComfortASP.NET 0.4 that saves the ASP.NET ViewState into a server session. You might wonder why this feature is only available for ASP.NET 1.1 and not for ASP.NET 2.0. The answer is easy: ASP.NET 2.0 already supports Session ViewState, but it is switched off by default. The class that's required is called SessionPageStatePersister. Please read this Article from Microsoft to see how to use it.

Another issue with the ViewState in a Session is the simple fact, that a Server Session will (and should) time out somewhen. In this case all of the ViewState is lost. So you should write some detection code that triggers the right action for this szenario (e.g. redirecting to some kind of start page). This Article shows some good ideas how to detect a session timeout.

Last but not least I have to inform you about a little bug in ComfortASP.NET V0.4 that throws an exception when the session timed out. Please turn off the feature "PersistViewStateInSession" until the next version will fix this. Thank you for your patience!

Daniel

Read: ASP.NET ViewState in a Session

Topic: [INETA] Three Italian Musquetiers Previous Topic   Next Topic Topic: Blogger Error 550 - Permission Denied

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use