Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 733719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:17:17+00:00 2026-05-14T07:17:17+00:00

We use ViewState to store data that is being edited by users. However, ViewState

  • 0

We use ViewState to store data that is being edited by users. However, ViewState just got too large so we really want something that is faster.

We considered session, but it has to be manually collected when users travel among pages.

Does anybody has suggestions?

Update:
Actually I am using Asp.net. They reason we do not want to use session is:
1. We don’t need to carry our data among pages.
2. When developer put something into session, he has to remember to delete it if it is no longer useful. Otherwise, the session will get bigger and bigger. This is kind of trival.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:17:18+00:00Added an answer on May 14, 2026 at 7:17 am

    You say you want the data stored server side and its should be automatically available?

    You could trick the viewstate into storing its data in session rather than a hidden field by using this technique:

    • http://aspadvice.com/blogs/robertb/archive/2005/11/16/13835.aspx

    You might find this article interesting as well which shows another technique to store your viewstate server side:

    • http://msdn.microsoft.com/en-us/magazine/cc188774.aspx#S6

    Despite the initial complexity of getting this set up I think it would be the best solution because then you don’t have to change your code throughout, it can still use ViewState as normal without realising this is now saved on the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use data paging (not custom data paging - just normal
A dumb question: Let's say I have an object that i store in viewstate.
I read that one cannot use ASP.NET MVC with Server Control which have ViewState
I am trying to use ViewState to store a collection, but it always get
Question ASP and ASP.NET web applications use a value called VIEWSTATE in forms. From
use C#,want to upload excel file on google doc. bellow syntax use to upload
I use viewstate like this: public bool SearchClicked { get { return Session[bool]==null? false
I'm trying to get asp.net to store viewstate in the session rather than bulking
becouse textboxes are stored in viewstate i cannot use this JS code <script type=text/javascript>
I just got a couple questions about asp.net mvc 3. I was reading about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.