Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

EnableCompression Property

Gets or sets whether compression is enabled for script files that are embedded as resources in an assembly.

Syntax

CSharp

[ConfigurationPropertyAttribute("enableCompression", DefaultValue = true)]
public bool EnableCompression { get; set; }

VisualBasic

<ConfigurationPropertyAttribute("enableCompression", DefaultValue := True)> _
Public Property EnableCompression As Boolean

ManagedCPlusPlus

[ConfigurationPropertyAttribute(L"enableCompression", DefaultValue = true)]
public:
bool EnableCompression {
	bool get ();
	void set (bool value);
}

JSharp

/** @property */
/** @property */

Value

Return Value

true if compression is enabled for script files that are embedded as resources in an assembly; otherwise, false. The default is true.

Remarks

The EnableCompression property gets or sets the value that indicates whether the following will be compressed:

  • Script files that are embedded as resources in an assembly.

  • Localization objects, such as string resources that are contained in a resource file (.resx).

  • Scripts that are served by the script resource handler.

note

If the requesting browser does not support compression, this property has no effect.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)