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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesIn nemory ViewState lifetime is to shortIn nemory ViewState lifetime is to short
Previous
 
Next
New Post
11/19/2011 4:44 AM
 

Hi all,

I am implementing a business application as DNN module, where users are able to view and submit data. My module consists of a table showing some entries data. When a table line is clicked the page posts back and a corresponding form is shown.

As I this would be an intensive working application maximal performance would be needed / expected.

I was able to speed up my application by set “Page State Persistance” to “Memory (cache)” (in Host/Host Settings/Advanced Settings). Unfortunately after some time the “in memory” Viewstate gets lost and the post back returns an error.

This situation could be avoided by:

  1. persist the Viewstate in the database,
  2. set the cache lifetime same or grater to the time the user is logged out for inactivity.

Do you have any suggestions / guidelines / hints to implement any of the solutions above? Modifying DNN core would be acceptable. I am using DNN 6.

Any suggestion would be appreciate.

Thank you,

Kristijan

 
New Post
11/19/2011 4:49 AM
 
OK, maybe "DotNetNuke Open Core" woulbe a better place to post this question, but I am sure a lot of experts are available here as well ; )
 
New Post
11/19/2011 8:40 AM
 
AFAIR there are 3rd party extensions, e.g. free module from DNN.tiendaboliviana.com, which support persisting viewstate in the database. another - maybe more performant - approach would be saving it in the file system. Regarding your module, did you try enabling partial rendering instead?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/21/2011 7:14 AM
 
Hi Sebastian,

Thank you for your answer.

I am already using page partial rendering.

Regarding viewstate I was considering both of your suggestions:
1. DNN.tiendaboliviana.com has a module that is supposed to save viewstate on Databese, but in UI I was not able to find any setting about this feature.

2. So I decided for saving viewstate in the filesystem. When looking at the DNN core how I could implement this functionality I found out that there is a “DiskPageStatePersister” already built in DNN, but there is no possibility to switch it from the UI (only with this SQL: update HostSettings SET SettingValue='D' where SettingName='PageStatePersister'). I tried and it seems to work. Do you or anybody know why it is not used (anymore)?

Well as now there is “Remember Login” feature, I am going to change the file name to derive NOT from the session Id but from the UserId (for registered users only!) and I will have viewstate persistence that lives beyond the session.

Thank you again for your hints.
Kristijan
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesIn nemory ViewState lifetime is to shortIn nemory ViewState lifetime is to short


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