Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the XHTML rendering mode for ASP.NET applications.
Syntax
class XhtmlConformanceSection : ConfigurationSection
Methods
The following table lists the methods exposed by the XhtmlConformanceSection
class.
Name | Description |
---|---|
GetAllowDefinition | (Inherited from ConfigurationSection.) |
GetAllowLocation | (Inherited from ConfigurationSection .) |
RevertToParent | (Inherited from ConfigurationSection .) |
SetAllowDefinition | (Inherited from ConfigurationSection .) |
SetAllowLocation | (Inherited from ConfigurationSection .) |
Properties
The following table lists the properties exposed by the XhtmlConformanceSection
class.
Name | Description |
---|---|
Location |
(Inherited from ConfigurationSection .) A key property. |
Mode |
A read/write sint32 value that specifies the XHTML rendering mode for ASP.NET applications. The possible values are listed later in the Remarks section. |
Path |
(Inherited from ConfigurationSection .) A key property. |
SectionInformation |
(Inherited from ConfigurationSection .) |
Subclasses
This class contains no subclasses.
Remarks
By default, when you are working with browsers that support HTML 4.0 or later, ASP.NET pages and controls render markup that is compatible with the XHTML 1.0 Transitional standard. However, under some circumstances, you might not want ASP.NET to render XHTML markup. This is typically true when you have existing pages that rely on tags or attributes that would ordinarily be prohibited by XHTML.
The following table lists the possible values for the Mode
property. The default is 0 (Transitional
).
Value | Keyword | Description |
---|---|---|
0 | Transitional |
XHTML markup is rendered as conforming to the XHTML 1.0 Transitional standard. |
1 | Legacy |
Reverts to their old behavior a number of rendering changes that are likely to break existing applications. There is no mechanism to revert all changes made to comply with the XHTML specification. Note: Use this setting to maintain conformance with ASP.NET 1.1 rendering. |
2 | Strict |
Specifies strict conformance with the XHTML 1.0 standard. The key change that occurs is that the name attribute is no longer rendered on the form tag. |
Inheritance Hierarchy
XhtmlConformanceSection
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |
See Also
ConfigurationSection Class
xhtmlConformance Element (ASP.NET Settings Schema)