Export (0) Print
Expand All

Calendar.UseAccessibleHeader Property

Gets or sets a value that indicates whether to render the table header <th> HTML element for the day headers instead of the table data <td> HTML element.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public virtual bool UseAccessibleHeader { get; set; }
<asp:Calendar UseAccessibleHeader="True|False" />

Property Value

Type: System.Boolean
true if the <th> element is used for day header cells; false if the <td> element is used for day headers.

The table header <th> HTML element is used for day header cells by default. You can revert to the .NET Framework version 1.0 behavior of using <td> elements for day header cells by setting this property to false.

Note that changing this value can affect scripts that rely on the rendering behavior of the version 1.0 edition of this control. The use of the <th> element might also alter the visible rendering of the Calendar control in browsers by making the day header cells center-aligned and bold.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

© 2015 Microsoft