Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
154 views

I am currently successfully compressing the server responses to HTTP requests for both regular requests and XMLHTTPRequests.

 

Unfortunately, some of my users are experiencing the following (per browser's debugging tools):

- The Request Header specifies its content-length at over three million bytes

- The Form Data section of the Request does in fact contain the key "__VIEWSTATE", whose value is 3MB (corroborating the Request Header size)

- The Request Sent time is over a minute, because the upload speed is abysmal.

 

So, I'm interested in compressing the view state specifically for XMLHTTPRequests, with the expectation that this will behave better with the user's upload speeds. I've attempted to use the RadCompression module to do this, and have been unsuccessful, which leads me to my question here:

 

How can I compress the Request Header of an AJAX request (containing the view state)?

Marin Bratanov
Telerik team
 answered on 19 Jan 2018
7 answers
260 views
I am new to the Telerik tools and am working with the Q1 2014 release of the ASP.Net AJAX tools.  I am trying to understand whether or not I need to set the RadCompression in the Web.config file.

I see in the documentation on RadCompression that it is not needed for IIS 7.5 because the Dynamic Compression of IIS 7.5 will result in double compression of the response.  Is this also true for IIS 8 and IIS 8.5?  I don't see anything in the forums or documentation for these newer versions of IIS 8 and 8.5.  Any information would be helpful.

Thanks,
Charlie
Viktor Tachev
Telerik team
 answered on 18 Oct 2017
0 answers
40 views

I am referring to the following link http://docs.telerik.com/devtools/aspnet-ajax/controls/radcompression

I have gone over all topics online, all tutorials, all recommendations and they are all pointing at how the "browser" file in the app_browser should be included and how the web.config file should be altered etc..

The article clearly states that the reduction will be between 40% to 60% or more depending on different factors. So, in order to clearly test the impact, i created an empty ASP.Net web forms application, added a masterpage and a content page with nothing but a RadScriptManager, RadGrid and Radeditor to just test how the viewstate is initially and then how applying the above will affect it.

The results were the following: Initially, the viewstate size was 9000 bytes without adding anything or any compressions, after applying the above (unless the documentation changed), the bytes have increased to 9100! not even decreased!

So, i am currently lost and i need to badly shrink the viewstate as much as possible to save on the bandwidth and performance.

I am using UI for ASP.NET AJAX Q2 2016, not sure if that affects the Radcompression module or not. Your assistance with this is highly appreciated (a sample project/configuration would go a long way)

Omar
Top achievements
Rank 2
 asked on 02 Oct 2017
0 answers
157 views

Hello Telerik Team,

Kindly, I got an error regarding the casting of a telerik object. I have removed the telerik compresion but my application is using a dinamic layer to create the control in the page, Also i will be removing the telerik compresion for all the clases in the control layer. Please can you provide more information regarding the below error, see the details:
Impossible d'effectuer un cast d'un objet de type 'Telerik.Web.UI.CompressedPageState' en type 'System.Collections.IDictionary'.
Informations sur l'erreur: Type: InvalidCastException Message: Impossible d'effectuer un cast d'un objet de type 'Telerik.Web.UI.CompressedPageState' en type 'System.Collections.IDictionary'. Trace de la pile: à System.Web.UI.Page.RegisterRequiresControlState(Control control) à Telerik.Web.UI.RadComboBox.OnInit(EventArgs e) à System.Web.UI.Control.InitRecursive(Control namingContainer) à System.Web.UI.Control.AddedControl(Control control, Int32 index) à System.Web.UI.ControlCollection.Add(Control child) à Telerik.Web.UI.GridPagerButtonBuilder.CreatePageSizeDropDown(Panel container) à Telerik.Web.UI.GridPagerButtonBuilder.CreatePageSize(Panel container) à Telerik.Web.UI.GridPagerItem.InitializePagerItem(GridColumn[] columns) à Telerik.Web.UI.GridPagerItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) à Telerik.Web.UI.GridTableView.CreateTopPagerItem(Boolean useDataSource, GridColumn[] copiedColumnSet, Boolean isPagingEnabled, GridTHead thead) à Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) à Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) à System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) à System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) à System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) à System.Web.UI.WebControls.DataBoundControl.PerformSelect() à Telerik.Web.UI.GridTableView.PerformSelect() à System.Web.UI.WebControls.BaseDataBoundControl.DataBind() à Telerik.Web.UI.GridTableView.DataBind() à Telerik.Web.UI.RadGrid.DataBind() à Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) à Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) à Env.MYAPPLICATION.Web.Controles.FormulaireGrilleGenerique`1.OnLoad(EventArgs e) dans e:MYAPPLICATION\Env.MYAPPLICATION.Web.Controles\FormulaireGrilleGenerique.cs:ligne 90 à System.Web.UI.Control.LoadRecursive() à System.Web.UI.Control.LoadRecursive() à System.Web.UI.Control.LoadRecursive() à System.Web.UI.Control.LoadRecursive() à System.Web.UI.Control.LoadRecursive() à System.Web.UI.Control.LoadRecursive() à System.Web.UI.Control.LoadRecursive() à System.Web.UI.Control.LoadRecursive() à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
Line 90: MYAPPLICATION\Env.MYAPPLICATION.Web.Controles\FormulaireGrilleGenerique.cs:ligne 90:
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);      

        }

Guillermo José
Top achievements
Rank 1
 asked on 12 Apr 2017
1 answer
87 views

A client site is running our ASP.NET 3.5 web-application which includes the Report Viewer control for reporting. They have recently upgraded to IE11, which must be run in native/standards mode.

In order to get the print function of the Report Viewer control working, we have upgraded the Report Viewer control to the 2012 version and have applied patches / updates as per instructions here:
https://blogs.msdn.microsoft.com/selvar/2013/12/20/reportviewer-2012-control-not-showing-print-icon-when-viewed-from-ie-11-desktop-mode/

Part of these instructions are to remove any browser files, however we are currently using the RadHiddenFieldPageStateCompression utility to compress viewstate (specified as per Telerik documentation in the Default.browser file).

If we remove the Default.browser file, the Report Viewer print function operates correctly, but viewstate compression no longer works. Adding the Default.browser file back in, hides the print button on the Report Viewer control.

Is there any way that we can retain viewstate compression and use the SSRS 2012 Report Viewer print function?

Thanks.

 

Maria Ilieva
Telerik team
 answered on 02 Jun 2016
0 answers
49 views

Hi Telerik

I Use IIS 8 and i want to enable RadCompression  in my application .

in App_Browsers

<browsers>
  <browser refID="Default">
    <controlAdapters>
      <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression" />
      <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />
    </controlAdapters>
  </browser>
</browsers>

 

in web.config

<system.web
.
.
  
   
    <httpModules>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>
  </system.web>

 

 

How can i  optimize viewstate and  compressing AJAX and Web Service responses  in my application ?

please help me ...

Thanks .

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

حمید
Top achievements
Rank 1
 asked on 31 May 2016
1 answer
41 views

Hi dear Telerik

I want to enable Compression in my website . How can i do it ?

I use IIS 8 .

Another question : How can i do for performance in my website when using Ajax UI telerik ?

Thanks .

Viktor Tachev
Telerik team
 answered on 26 May 2016
6 answers
162 views
Hey Guys,

We're just porting over to IIS7 from 6 and having problems with our postbacks.  Client fires but no server-side response just reloads the page - not even the click handler executes its code. Seems intermittent, but the following error is common:

[NullReferenceException: Object reference not set to an instance of an object.]
   System.Object.GetType() +0
   Telerik.Web.UI.RadCompression.Compress(HttpApplication application) +820
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +171

Now when I remove RadCompression entries from web.config it all springs back to life, with no problems.

So I'm doing something wrong with IIS7.  I have the Registration code in both System.Web\HttpModules and system.webserver\modules.

Any ideas?
thanks
Viktor Tachev
Telerik team
 answered on 28 Apr 2016
4 answers
364 views
Hi,
I am using RAD Combox.
I need the code to make enable or disable the combox by using javascript.

Also one more problem I m facing..
If I am disabling the combox in server side code then I am not able to enable it in javascript.

I use the following line of code in javascript to disable

document.getElementById(rcComboBox).disabled =

true;

My requirement is ..

One text box and one radcombobox are there.

Based on some value in the textbox, I have to make disable and enable the combobox and also select value in combox will get change based on the textbox value.

 

SURYA
Top achievements
Rank 1
 answered on 27 May 2015
1 answer
61 views
We are trying to use RADCompression on our website for compressing Viewstate only and do not see the viewstate getting compressed.  We wrote a small "hello world" website and can get the viewstate compression working perfectly on the test website, but not on the primary website.  We have compared the web.config and the browserFile.Browser file between the test and primary websites and they are the same.  Below is the configurations that we are using.  Is there any diagnostics that we can turn on to see what is happening within the RadCompression module?

The Browser File content
<!--
    You can find existing browser definitions at
    <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers
-->
<browsers>
    <browser id="NewBrowser" parentID="Mozilla">
        <identification>
            <userAgent match="Unique User Agent Regular Expression" />
        </identification>        <capture>
            <userAgent match="NewBrowser (?'version'\d+\.\d+)" />
        </capture>        <capabilities>
            <capability name="browser" value="My New Browser" />
            <capability name="version" value="${version}" />
        </capabilities>
    </browser>    <browser refID="Mozilla">
        <capabilities>
            <capability name="xml" value="true" />
        </capabilities>
    </browser>    <browser refID="Default">
      <controlAdapters>
        <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />
      </controlAdapters>
    </browser></browsers>




The web.config file only has

    <modules runAllManagedModulesForAllRequests="true">
  <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
 </modules>


We are not using the configSections sections in the web.config file. 


Pavlina
Telerik team
 answered on 05 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?