Latest web development tutorials

ASP.NET Calendar NextPrevFormat property

Calendar Control Calendar Control

Definition and Usage

NextPrevFormat attribute is used to specify the calendar for the next month and the previous month link format.

grammar

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

属性 描述
format 规定日历中下一月和上一月的链接的格式。

可能的值:

  • ShortMonth
  • FullMonth
  • CustomText


Examples

The following example shows NextPrevFormat is set to "ShortMonth" calendar:

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

The demonstration >>

Calendar Control Calendar Control