Page size INCREASES if using Telerik.Web.UI.RadHiddenFieldPageStateCompression

11 posts, 0 answers
  1. James
    James avatar
    70 posts
    Member since:
    Jun 2009

    Posted 31 Jan 2011 Link to this post

    HI.

    I have been using the radcompression to compress viewstate for a while on an intranet based app. As the number of users has grown quite significantly the use of  RadSessionPageStateCompression is now causing problems - IIS seems to be recycling the app pool A LOT.

    I looked at using instead but this actually increases the size of the page in our test environment (IIS 6 running without IIS compression). I have not tried it on the live system which is IIS7 WITH IIS inbuild compression turned on for dynamic pages.

    if i remove the browser file the page is 127k, with RadHiddenFieldPageStateCompression it is 138k!


    can someone please advise if this is an issue with the adapter?

    ALso if anyone has any good suggestions on how to use Telerik.Web.UI.RadSessionPageStateCompression, but is able to handle 100ish concurrent users without causing teh app pool to reclycle frequently that would be very helpful too.

    thanks

    james
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 03 Feb 2011 Link to this post

    Hello James,

    Please try enabling the RadCompression using the following help topic and remove the browser file settings you have previously set.
    Let me know if this makes any difference.


    Regards,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start 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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 03 Feb 2011 Link to this post

    Hello James,

    Please try enabling the RadCompression using the following help topic and remove the browser file settings you have previously set.
    Let me know if this makes any difference.


    Regards,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start 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.
  5. James
    James avatar
    70 posts
    Member since:
    Jun 2009

    Posted 03 Feb 2011 Link to this post

    we are using the browser file to enable viewstate compression, which greatly reduces the size of the page. we wouldnt want to get rid of that functionality.

    Can the viewstate compression be turned on without the broser file?
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 08 Feb 2011 Link to this post

    Hi James,

    By enabling the compression using the previously provided help topic the viewstate compression will be correctly enabled. Please gives this suggestion a try and let me know if it works.


    All the best,
    Maria Ilieva
    the Telerik team
    Browse the vast support resources we have to jump start 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.
  7. James
    James avatar
    70 posts
    Member since:
    Jun 2009

    Posted 09 Feb 2011 Link to this post

    Sorry if i'm missing something, but the only mention of how to enable viewstate compression in the link is to use the browser file, but you are telling me to remove the browser file.

    I am a bit confused.
  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 11 Feb 2011 Link to this post

    Hi James,

    Excuse my previous misunderstanding.

    The answer I has provided was regards to enable simple RadCompression without such for the ViewState.
    In your case you could try enable the compression for particular pages using the RadCompressionSettings attribute on the page in question:
    C#
    [RadCompressionSettings(HttpCompression = CompressionType.ViewState)]  
    public partial class _Default : System.Web.UI.Page  
    {  
       ...  
    }





    Best wishes,
    Maria Ilieva
    the Telerik team
    Browse the vast support resources we have to jump start 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.
  9. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 11 Feb 2011 Link to this post

    Hello,

    I have the same prioblem, could you make clear if with .net 4 and last Telerik version we DO NOT have to use the .browser file and the control adapter to have our viewwstate compressed, we simply have to set an attribute to the Page class
    [RadCompressionSettings(HttpCompression = CompressionType.ViewState)] 


    How to trace server side that the wiewstate is compressed on each call, ajax or not ?

    Thanks
    CS
  10. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 11 Feb 2011 Link to this post

    Little problem
    CompressionType does not contains  CompressionType.ViewState) using 2010.3.1317 ??????
  11. James
    James avatar
    70 posts
    Member since:
    Jun 2009

    Posted 11 Feb 2011 Link to this post

    download fiddler2 - it allows yo uto see the actual size of the pages as they are downloaded.

    turn the compression off to see the normal size, then compare it after turning compression on.
  12. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 11 Feb 2011 Link to this post

    I kwow Fiddler but I want to trace on my production site to check that every request is correctly compressed, I won't use Fiddler for this.
    Anyway thanks.
    CS
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017