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

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

10 Answers 152 Views
Compression
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 31 Jan 2011, 04:14 PM
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

10 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 03 Feb 2011, 04:32 PM
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.
0
Maria Ilieva
Telerik team
answered on 03 Feb 2011, 04:33 PM
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.
0
James
Top achievements
Rank 1
answered on 03 Feb 2011, 06:22 PM
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?
0
Maria Ilieva
Telerik team
answered on 08 Feb 2011, 03:21 PM
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.
0
James
Top achievements
Rank 1
answered on 09 Feb 2011, 12:09 PM
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.
0
Maria Ilieva
Telerik team
answered on 11 Feb 2011, 02:38 PM
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.
0
CSurieux
Top achievements
Rank 2
answered on 11 Feb 2011, 04:32 PM
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
0
CSurieux
Top achievements
Rank 2
answered on 11 Feb 2011, 04:37 PM
Little problem
CompressionType does not contains  CompressionType.ViewState) using 2010.3.1317 ??????
0
James
Top achievements
Rank 1
answered on 11 Feb 2011, 04:41 PM
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.
0
CSurieux
Top achievements
Rank 2
answered on 11 Feb 2011, 04:54 PM
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
Tags
Compression
Asked by
James
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
James
Top achievements
Rank 1
CSurieux
Top achievements
Rank 2
Share this question
or