ASP.NET Calendar NextPrevFormat 屬性

定義和用法
NextPrevFormat屬性用於規定日曆中下一月和上一月的鏈接的格式。
語法
<asp:Calendar NextPrevFormat="format" runat="server" />
屬性 | 描述 |
---|---|
format | 規定日曆中下一月和上一月的鏈接的格式。 可能的值:
|
實例
下麵的實例顯示了 NextPrevFormat 被設置為 "ShortMonth" 的日曆:
<form runat="server">
<asp:Calendar id="cal1" runat="server" NextPrevFormat="ShortMonth" />
</form>
<asp:Calendar id="cal1" runat="server" NextPrevFormat="ShortMonth" />
</form>
