ASP.NET NextPrevFormat 屬性

定義和用法

NextPrevFormat 屬性用于規定日歷中下一月和上一月的鏈接的格式。

語法

<asp:Calendar NextPrevFormat="format" runat="server" />
屬性 描述
format

規定日歷中下一月和上一月的鏈接的格式。

可能的值:

  • ShortMonth
  • FullMonth
  • CustomText

實例

下面的例子顯示 NextPrevFormat 被設置為 "ShortMonth" 的日歷:

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

實例

為 Calendar 控件設置 NextPrevFormat