ASP.NET Calendar TitleFormatProperties


Calendar 控件Calendar Control

Definition and Usage

The TitleFormat property is used to set or return how the calendar title is displayed (its format).

Syntax

<asp:Calendar TitleFormat="mode" runat="server" />

Property Description
mode Specifies how the calendar title is displayed (its format).

Possible values:

  • Month
  • MonthYear (Default)



Example

The following example sets the TitleFormat to display the month:

<form runat="server">
<asp:Calendar id="cal1" runat="server"
TitleFormat="Month" />
</form>

Try it Yourself »

Calendar 控件Calendar Control Other Extensions