Skip to main content
A newer version of this page is available. .

Web.Config Options Overview

  • 2 minutes to read

A DevExpress section is automatically created within the Web.Config file when any DevExpress web control is added in Visual Studio from the Toolbox to the Design area. This section lists all available default DevExpress options, which allow you to control various features.

The following code demonstrates the default registration of this section in Web.Config.

Web.config:

<configuration>
  <configSections>
    <sectionGroup name="devExpress">
      <section name="themes" type="DevExpress.Web.ThemesConfigurationSection, DevExpress.Web.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
      <section name="compression" type="DevExpress.Web.CompressionConfigurationSection, DevExpress.Web.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
      <section name="settings" type="DevExpress.Web.SettingsConfigurationSection, DevExpress.Web.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
      <section name="errors" type="DevExpress.Web.ErrorsConfigurationSection, DevExpress.Web.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
      <section name="resources" type="DevExpress.Web.ResourcesConfigurationSection, DevExpress.Web.v19.2, Version=19.2.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
    </sectionGroup>
  </configSections>
  ...
  <devExpress>
    <themes enableThemesAssembly="true" styleSheetTheme="" theme="Metropolis" customThemeAssemblies="" baseColor="Green" font="30px 'Callibri'"  />
    <compression enableHtmlCompression="false" enableCallbackCompression="true" enableResourceCompression="true" enableResourceMerging="true" />
    <settings doctypeMode="Html5" rightToLeft="false" ieCompatibilityVersion="edge" />
    <errors callbackErrorRedirectUrl="" />
    <resources>
      <add type="ThirdParty" />
      <add type="DevExtreme" />
    </resources>
  </devExpress>
</configuration>

The following DevExpress options are available within a web project’s Web.Config file.

Note

By design, the DevExpress compression features (controlled by Page Html Compression, Callback Compression, Resource Compression and Resource Merging options) are disabled for Internet Explorer 6. Use the ASPxWebControl.MakeResponseCompressed method’s overload and accept the applyToIE6 parameter to enable it for this browser.

Note

If IIS compression is configured on the server, disable DevExpress Web.config options related to compression (Page Html Compression, Callback Compression, Resource Compression and Resource Merging options) to avoid behavior issues.