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

cannot get exclusions to work

4 Answers 49 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, 06:03 PM
Hi.

I am using radcompression on a .net 2 app which is also compressing viewstate into a session.

I want to exclude a page from being compressed (specifially the viewstate as it is 300k - it's a very big and silly page with 100''s of controls on).

whatever i do i cannot achieve this - the page size does nto change.

after adding

<

 

telerik.web.ui>

 

<

 

radCompression>

 

<

 

excludeHandlers>

 

<

 

add handlerPath="rptcurrentactivity.aspx" matchExact="false"/>

 

</

 

excludeHandlers>

 

</

 

radCompression>

 

</

 

telerik.web.ui>

 



into the web.config for the site, the size does not increase as i would expect. if i remove teh appbrowser file to stop copression, the page size is inclreaed by about 300k as i expect. any ideas?

4 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 03 Feb 2011, 06:08 PM
Hello James,

Could you please try stopping the state compression for the relevant page by adding the following attribute to it:

[RadCompressionSettings(StateCompression = CompressionType.None)]
partial class _Default : System.Web.UI.Page
{
   ...
}

I hope this helps.

Best wishes,
Martin
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 07 Feb 2011, 10:12 AM
<RadCompressionSettings(HttpCompression := CompressionType.None)> _  
Public Partial Class Default  
    Inherits System.Web.UI.Page  
    ...   
End Class  

... in VB.net.

Thanks Martin.
0
Martin
Telerik team
answered on 10 Feb 2011, 01:08 PM
Hello James,

Note that setting <RadCompressionSettings(HttpCompression := CompressionType.None)> should stop the request compression. Instead I would suggest that you use <RadCompressionSettings(StateCompression := CompressionType.None)> to stop the viewstate compression.

I hope this helps.

All the best,
Martin
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 10 Feb 2011, 01:10 PM
Good spot! thanks!
Tags
Compression
Asked by
James
Top achievements
Rank 1
Answers by
Martin
Telerik team
James
Top achievements
Rank 1
Share this question
or