Data Recovery Forums - Help & Discussions Forum Index

Data Backup Software, Program | Solution, Computer | System Backup Software
Data Recovery Forums - Help & Discussions
Free online data recovery guide to help you find the information you need to recover your data. Discuss and get help about data recovery in this forum.
Professional Data Recovery | Data Recovery Houston | Data Recovery Chicago | Data Recovery New York | Data Recovery Boston | Data Recovery Los Angeles

 FAQsFAQs   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Windows Data Recovery Software | Tool | Program | Utilities | Applications, NTFS Deleted File Recovery, FAT Undelete
Storing ViewState in Session State - ASP.NET

 
Post new topic   Reply to topic    Data Recovery Forums - Help & Discussions Forum Index -> .Net Technologies


 
Author Message
Isabella



Joined: 15 Jun 2006
Posts: 103

PostPosted: Tue Aug 08, 2006 12:26 am    Post subject: Storing ViewState in Session State - ASP.NET Reply with quote

If you want to keep your ASP.NET pages lighter why not keeping lengthy ViewState in memory instead of the page.

Tested, works perfectly well. One question, is it scalable? I mean what's happens with hundreds of simultaneous users?

VB.Net override function goes here:

Code:
Protected Overrides Function LoadPageStateFromPersistenceMedium() As Object
        Dim key As String = Request.RawUrl + "_VIEWSTATE"
        Dim state As Object = Session(key)
        If state Is Nothing Then
            Return MyBase.LoadPageStateFromPersistenceMedium()
        Else
            Return state
        End If
End FunctionProtected Overrides Sub SavePageStateToPersistenceMedium(ByVal viewState As Object)
        Dim key As String = Request.RawUrl + "_VIEWSTATE"
        Session(key) = viewState
End Sub


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Data Recovery Forums - Help & Discussions Forum Index -> .Net Technologies All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Data Recovery Service | Data Recovery London UK | Houston Data Recovery | Chicago Data Recovery | New York Data Recovery

Powered by phpBB © 2001, 2005 phpBB Group