PagesSection.ControlRenderingCompatibilityVersion Property

Definition

Gets or sets a value that specifies the ASP.NET version that any rendered HTML will be compatible with.

C#
[System.ComponentModel.TypeConverter(typeof(System.Web.Configuration.VersionConverter))]
[System.Configuration.ConfigurationProperty("controlRenderingCompatibilityVersion", DefaultValue="4.0")]
[System.Configuration.ConfigurationValidator(typeof(System.Web.Configuration.VersionValidator))]
public Version ControlRenderingCompatibilityVersion { get; set; }

Property Value

The ASP.NET version that any rendered HTML will be compatible with.

Attributes

Exceptions

An attempt was made to set this property to null.

Remarks

This value is set by the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file. The value of this property is the default value for the Control.RenderingCompatibility property. For information about how it is used, see the Control.RenderingCompatibility property.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also