คุณสมบัติ NextPrevFormat ของ ASP.NET

คำอธิบายและวิธีใช้

คุณสมบัติ NextPrevFormat ใช้กำหนดรูปแบบของลิงก์ของเดือนต่อไปและเดือนก่อนในปฏิทิน

รูปแบบ

<asp:Calendar NextPrevFormat="format" runat="server" />
คุณสมบัติ คำอธิบาย
format

กำหนดรูปแบบของลิงก์ของเดือนต่อไปและเดือนก่อนในปฏิทิน

ค่าที่เป็นไปได้

  • ShortMonth
  • FullMonth
  • CustomText

ตัวอย่าง

ตัวอย่างด้านล่างแสดงว่า Calendar ที่ NextPrevFormat ถูกตั้งเป็น "ShortMonth":

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

ตัวอย่าง

ตั้งค่า NextPrevFormat สำหรับ Calendar ควบคุม