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 to the Design area in Visual Studio. This section lists all available default DevExpress options that control various features.

The default registration of this section in Web.Config is as follows.

Web.config:

<configuration>
  <configSections>
    <sectionGroup name="devExpress">
      <section name="themes" type="DevExpress.Web.ThemesConfigurationSection, DevExpress.Web.v20.1, Version=20.1.17.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
      <section name="compression" type="DevExpress.Web.CompressionConfigurationSection, DevExpress.Web.v20.1, Version=20.1.17.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
      <section name="settings" type="DevExpress.Web.SettingsConfigurationSection, DevExpress.Web.v20.1, Version=20.1.17.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
      <section name="errors" type="DevExpress.Web.ErrorsConfigurationSection, DevExpress.Web.v20.1, Version=20.1.17.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
      <section name="resources" type="DevExpress.Web.ResourcesConfigurationSection, DevExpress.Web.v20.1, Version=20.1.17.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, 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 overload and accept the applyToIE6 parameter to enable these features 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.