DisablePageViewStateByDefault app setting

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
12/4/2013 2:06:12 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

DisablePageViewStateByDefault app setting

I noticed this is set to false in web.config in v2.4.0.0 yet the comments suggest leaving it set to true unless it causes problems in custom features.

I added it to user.config and set it to true, to see if it improved page load speed, however standard pages with only html content still have viewstate in the source.

Is viewstate required for the CKeditor inline editing?

12/4/2013 2:58:41 PM
Gravatar
Total Posts 18439

Re: DisablePageViewStateByDefault app setting

That is a legacy setting that is only used in .NET 3.5 builds of mojoPortal. It was an old strategy for reducing viewstate by turning it off at the page level by default then it was up to any feature that needed viewstate to turn it back on. Vast majority of features do need some viewstate but we have better ways to reduce un-needed viewstate in .NET 4.

The settingvalue was changed to false a long time  ago but I guess we forget to update the comment.

In any case I am removing this setting from web.config so it won't be there in the next release.

I don't think viewstate is used or needed for inline editing, the viewstate probably comes from something else, any .NET control may use viewstate so anything in the skin can contribute some, search input for example, any validator controls updatepanels etc. Some will be generated by the title control for html content because it has buttons for workflow, anything that does postback needs some viewstate.

12/5/2013 2:17:15 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: DisablePageViewStateByDefault app setting

Thanks for clarifying this Joe.

You must sign in to post in the forums. This thread is closed to new posts.