ASP.NET Calendar NextPrevFormatProperty


Calendar 控件Calendar Control

Definition and Usage

The NextPrevFormat property is used to specify the format of the next month and previous month links in the calendar.

Syntax

<asp:Calendar NextPrevFormat="format" runat="server" />

Property Description
format Specifies the format of the next month and previous month links in the calendar.

Possible values:

  • ShortMonth
  • FullMonth
  • CustomText


Example

The following example shows a calendar with NextPrevFormat set to "ShortMonth":

<form runat="server">
<asp:Calendar id="cal1" runat="server" NextPrevFormat="ShortMonth" />
</form>

Try it Yourself »

Calendar 控件Calendar Control Other Extensions