This is a migrated thread and some comments may be shown as answers.

RadSessionPageStateCompression Not Working?

6 Answers 154 Views
Compression
This is a migrated thread and some comments may be shown as answers.
Valery
Top achievements
Rank 2
Valery asked on 06 Apr 2010, 11:42 AM
Hi there,

I have followed the RadCompression instructions for enabling the RadSessionPageStateCompression. Everything worked like charm in Q3 2009 but it stopped in Q1 2010. I can see a huge view state in my page and I have no idea what I did wrong.

So what are the possible reason for silently not using the RadSessionPageStateCompression adapter?

Thank you in advance,
Valery.

6 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 06 Apr 2010, 02:45 PM
Hi Valery,

I'm afraid that I'm not able to observe the behavior you have described. I have attached a small test page, please take a look, maybe I'm missing something obvious.
Also you should have in mind that by default SessionPageStatePersister (used internally by our state persister) does not store ControlState in the session. In order to force it, you should add the following settings to your web config.

<system.web>
    <browserCaps>
      <case>
        RequiresControlStateInSession=true
      </case>
    </browserCaps>
</system.web>


Best wishes,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Valery
Top achievements
Rank 2
answered on 06 Apr 2010, 03:07 PM
Hello there,

That one solved my problem! I guess that is worth mentioning in the documentation. I am not sure why I observed a relatively smaller viewstate before (it may be because of switching from RadWindow to RadDock).

Thanks!

Valery.
0
Mark
Top achievements
Rank 1
answered on 04 Nov 2010, 01:33 AM
So with this setup you will still get something in the viewstate control? Is this the session variable id of the viewstate? or should the
viewstate value=""

this is what i get.
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPZwUPOGNkNGEzYjc0MzE3MTkya87SkBtiHWiKhU9aaqPbGM3i/Jc=" />
0
Iana Tsolova
Telerik team
answered on 09 Nov 2010, 04:38 PM
Hi Mark,

Could you please try disabling an ASP.NET page ViewSate without using RadCompression at all and see if then you have the mentioned hidden field?

Greetings,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mark
Top achievements
Rank 1
answered on 16 Nov 2010, 03:52 AM
I tried that but it still shows up

I used <%@ Page Title="" EnableViewState="false"...... for a single page.

I also set the same for the master page that this page belonged to.
0
Iana Tsolova
Telerik team
answered on 17 Nov 2010, 09:43 AM
Hello Mark,

I think that this answers your questions. I assume you observed that with no RadControls on the page and in the application at all, when ViewState is disabled still a hidden field with name __VIEWSTATE is created/rendered. And that is why it persists when you use RadCompression as well.

Regards,
Iana
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Compression
Asked by
Valery
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Valery
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or