RadSessionPageStateCompression Not Working?

7 posts, 1 answers
  1. Valery
    Valery avatar
    45 posts
    Member since:
    Nov 2008

    Posted 06 Apr 2010 Link to this post

    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.
  2. Answer
    Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 06 Apr 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Valery
    Valery avatar
    45 posts
    Member since:
    Nov 2008

    Posted 06 Apr 2010 Link to this post

    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.
  5. Mark
    Mark avatar
    12 posts
    Member since:
    Aug 2012

    Posted 03 Nov 2010 Link to this post

    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=" />
    
  6. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 09 Nov 2010 Link to this post

    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
  7. Mark
    Mark avatar
    12 posts
    Member since:
    Aug 2012

    Posted 15 Nov 2010 Link to this post

    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.
  8. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 17 Nov 2010 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017