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

ASPxWebControl.SetIECompatibilityModeEdge(Control) Method

OBSOLETE

Use another overload of this method instead.

Switches all DevExpress controls on the specified page to use the latest IE version.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[Obsolete("Use another overload of this method instead.")]
public static void SetIECompatibilityModeEdge(
    Control pageOrMasterPage
)

Parameters

Name Type Description
pageOrMasterPage Control

A Control object that specifies a web page (or master page) whose response renders the X-UA-Compatible header.

Remarks

A call to the SetIECompatibilityModeEdge method changes the rendering manner of all DevExpress controls within a page, to ensure that they behave correctly under the specified IE version.

Note

This overload is not applicable to the ASP.NET MVC environment, because there is no such Page object in MVC as opposed to ASP.NET Web Forms.

The universal approach for working with the SetIECompatibilityMode/SetIECompatibilityModeEdge methods is as follows:

This method is useful when it is necessary to switch all DevExpress controls on the specified page to use the latest IE version at runtime. To accomplish this task declaratively, consider using the IE Compatibility Version configuration option.

Refer to the KA18646 Knowledge Base article to learn more.

Example for ASP.NET Web Forms

Code behind:

protected void Page_PreInit(object sender, EventArgs e) {
    DevExpress.Web.ASPxWebControl.SetIECompatibilityModeEdge(this.Master);
}
See Also