Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Where is ViewState information stored?

Answer Posted / suresh.k

Storage Options

Because it implements the Provider Pattern, you have at your
disposal two ways of storing ViewState (with more to come):

* Save To Cache: save ViewState in Cache, on the server
* Save To XML: saves ViewState into an XML file on the
server

The storage option you choose, depends on your requirements
as well as the constraints of your hosting environment.

Save To Cache: it is recommended for those situations where
you have a moderate volume of visitors. Pages will be served
faster (since we are accessing memory to retrieve
information). Since Chache is recycled automatically by the
server when memory is needed, it is important to know what
your hosting provider memory limits are, and what volume of
users you expect at any given time.
The Cache solution, allows you to specify the number of idle
minutes that you want the viewstate to be kept in memory
before being recycled (cacheMinutes attribute).
In case of premature recycling, the page will not fail, but
be redirected to itself, thus instantiating a new caching cycle.

Save To XML: it is recommended for high volume sites. Pages
will be served fast, and viewstate stored and retrieved from
xml files saved in a directory of your choice (virtualPath
attribute) that will require r/w permission.
There will be one file per user, and files will be deleted
at a configurable interval (fileCacheMinutes attribute).
Since there could be multiple ViewState in any given file
(if for example a user opens a pop-up), you can also specify
the number of minutes that any given ViewState entry can be
idle before being deleted (recordCacheMinutes attribute). If
you have a lot of pop-ups in your site, recordCacheMinutes
should be set to few minutes.
In case of premature recycling, the page will not fail, but
be redirected to itself, thus instantiating a new caching
cycle.

Is This Answer Correct ?    5 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does mvc represent in asp.net? : asp.net mvc

1097


What are the advantages and limitations of query string?

996


How does session authentication work?

872


What is the differences between a primary key and a unique key in sql server?

1007


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1995


What is a master page and what does it do?

881


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

2100


How to find last error which occurred in Asp.net ?

1193


How do you implement postback with a text box?

933


What is page fragment caching?

903


Can you explain composite pattern?

959


witch is the best insistute in sharpoint course.what abt future of share point course.

3337


What is new asp.net core?

1003


What is meant by ispostback in asp net?

1003


Explain what are delegates?

1045