ASP.NET Calendar NextPrevFormat 属性

ASP.NET Calendar NextPrevFormat 属性

Calendar 控件 Calendar 控件

定义和用法

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 控件 Calendar 控件
相关文章