too many __VIEWSTATEs in forums module.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/19/2012 11:09:46 PM
Gravatar
Total Posts 46

too many __VIEWSTATEs in forums module.

hi, joe.

I have a page, have 3 empty forum modules in the page.

Now, I see the page's html source

/////////////////////////////////////////////////////////////////////////

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMjA1OTAyNzk1MQ9kFgJmD2QWBAIBDxYCHgdwcm9maWxlBSlodHRwOi8vZHVibGluY29yZS5vcmcvZG9jdW1lbnRzL2Rj" />.................

.....

<input type="hidden" name="__VIEWSTATE155" id="__VIEWSTATE155" value="ZWYtMWE1My00NmM0LWEyMzgtM2EwYTQwYjc1MzQxZA==" />

/////////////////////////////////////////////////////////////////////////

you can see, there are 156 viewstates in the page.

when you see the page www.mojoportal.com/Forums

you can see there are __VIEWSTATE to  __VIEWSTATE258 total 259 viewstates.

there are too many viewstates.

So

1. How to reduce Forums' viewstates?

2. If I add EnableViewState="False" to layout.Master, will mojoportal  be abnormal?

3. Could you let mojoportal run default in EnableViewState="False" state?

Thanks!

1/20/2012 3:41:22 PM
Gravatar
Total Posts 18439

Re: too many __VIEWSTATEs in forums module.

Hi,

This is now fixed in the source code repository and on this site.

Thanks,

Joe

1/21/2012 2:29:56 AM
Gravatar
Total Posts 46

Re: too many __VIEWSTATEs in forums module.

Thanks! thanks! thanks!

Now it better so much!

Better release a new  stable version.

1/21/2012 6:51:25 AM
Gravatar
Total Posts 18439

Re: too many __VIEWSTATEs in forums module.

Better release a new  stable version.

There will be a new version soon, but lets be clear this is not a major bug affecting users and the current release is not unstable. This is just reduction in page bloat caused by uneeded viewstate in the forum list, so the payload of the page is not as heavy. 

1/21/2012 2:03:55 PM
Gravatar
Total Posts 46

Re: too many __VIEWSTATEs in forums module.

Yes, I Know!

I don't know whether you get rid of __VIEWSTATE  of  RSSFeed or not.

I have a feed page has __VIEWSTATE to __VIEWSTATE10715 total 10716 __VIEWSTATEs ,it is so many.

here is my page: http://www.ipwom.com/blogs.aspx, it has 10716 __VIEWSTATEs, so it is very slow.

In my country, network speed is slow and often error and goto http://www.ipwom.com/Error.htm?aspxerrorpath=/Default.aspx.

And the paging function maybe has problem in RSSFeed feature. In this page http://www.ipwom.com/blogs.aspx,  page 2 and page 3 can't show, I don't know whether is the reason of too many __VIEWSTATEs.

Thanks!

1/21/2012 3:01:12 PM
Gravatar
Total Posts 18439

Re: too many __VIEWSTATEs in forums module.

Hi,

ok, I've done some viewstate optimization in the feed manager if you get the latest code from the repository you should find the viewstate is reduced.

Best,

Joe

1/21/2012 11:27:35 PM
Gravatar
Total Posts 46

Re: too many __VIEWSTATEs in forums module.

Now, the FeeManager is faster and the paging function can work now!

Thanks!

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