Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Moving the viewstate to the server with a PageAdapterMoving the viewstate to the server with a PageAdapter
Previous
 
Next
New Post
6/25/2014 1:27 PM
 
FYI the default viewstate in 7.3.0 is 92 bytes (down from 4kb for earlier DNN releases)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/25/2014 2:06 PM
 
4kb viewstate wouldn't require not even optimization. There must be something stacking up then. Maybe when you add custom modules then the will add so much overhead. It may be due to "bad" coding or because those modules really leverage viewstate for something. But sites I'm working are about 60/80k that is not outrageous, yet if I can move those non-client-cacheable 60k away from the client/server pipeline and bandwidth I'm still happy. Consider a 25k pageviews is 1.5 Gb bandwidth just for the viewstate and the added overhead in page load times considering both the upload (since it is posted back to the server) and the download.
Overall is a server-only value it shoudl stay on the server and be tied to the user with an id just like session.
 
New Post
6/25/2014 6:14 PM
 
FYI we have this already built into DNN -http://www.dnnsoftware.com/Content/Do... -it's set to page (which is the standard asp.net behaviour) as typically page size/bandwidth is "cheaper" than memory, but it's available as an option for sites who feel differently.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/25/2014 6:29 PM
 
Yes exactly Cathal, but memory it's not the best place for this in my opinion... better to reserve this for caching of modules and page to avoid dozens of sql query, while file system/db are the first choice (viewstate in db would be a single query after all) or distributed cache in a wider scenario. Also using disk/db allow for a longer persistance of the viewstate without having to worry about keeping memory resources busy.
Having the viewstate on the server is also added security since it avoids tampering (even if in a well designed scenario you won't keep security data there).
About the "ajax" issue when you move away the viewstate this is just matter of using the ScriptManager.RegisterHiddenField instead of ClientScript.RegisterHiddenField to add the "revised" viewstate field with the ID.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Moving the viewstate to the server with a PageAdapterMoving the viewstate to the server with a PageAdapter


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out