Calendar::NextPrevFormat Property
Gets or sets the format of the next and previous month navigation elements in the title section of the Calendar control.
Assembly: System.Web (in System.Web.dll)
public: property NextPrevFormat NextPrevFormat { NextPrevFormat get (); void set (NextPrevFormat value); }
<asp:Calendar NextPrevFormat="NextPrevFormat" />
Property Value
Type: System.Web.UI.WebControls::NextPrevFormatOne of the NextPrevFormat values. The default value is CustomText.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The specified format is not one of the NextPrevFormat values. |
Use the NextPrevFormat property to specify the format for the next and previous month navigation elements on the Calendar control. This property is set with one of the NextPrevFormat enumeration values. You can specify whether the text for the navigation controls is displayed as the full month name, the short (abbreviated) month name, or custom text.
To specify custom navigation text, set this property to NextPrevFormat.CustomText and set the NextMonthText and PrevMonthText properties to the custom text.
This property applies only if the ShowNextPrevMonth property is set to true.
| Topic | Location |
|---|---|
| How to: Customize Calendar Web Server Control Appearance | Building ASP .NET Web Applications |
| How to: Customize Calendar Web Server Control Appearance | Building ASP .NET Web Applications |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.