Tab
A newer version of this page is available. Switch to the current version.

ASPxWebControl.MakeResponseCompressed(Boolean) Method

Specifies that the response code (the HTML code of the web page) should be compressed on the server before sending it to the client, and accepts a parameter specifying whether to apply compression to IE6.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public static void MakeResponseCompressed(
    bool applyToIE6
)
Public Shared Sub MakeResponseCompressed(
    applyToIE6 As Boolean
)

Parameters

Name Type Description
applyToIE6 Boolean

true to enable compression under IE6; otherwise, false.

Remarks

In contrast to using the Page HTML Compression Web.Config option, the MakeResponseCompressed method allows you to enable HTML compression for individual web pages.

This method overload allows you to control whether to enable page HTML compression for Internet Explorer 6.

Note that in version v2010 vol2, we decided to suppress our internal HTTP compression (controlled by the Page HTML Compression config option) for IE6. This is due to different unpredictable problems that occurred in IE6 with enabled compression.

In some application scenarios however, it may be required to have response com