ASP.NET NextPrevFormat 属性

定義と使用方法

NextPrevFormat 属性は、カレンダー内の次の月と前の月のリンクのフォーマットを指定するために使用されます。

文法

<asp:Calendar NextPrevFormat="format" runat="server" />
属性 説明
フォーマット

カレンダー内の次の月と前の月のリンクのフォーマットを指定します。

可能な値:

  • ShortMonth
  • FullMonth
  • CustomText

次の例では、NextPrevFormat が "ShortMonth" に設定されたカレンダーが表示されます:

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

Calendar コントロールに NextPrevFormat を設定する