asp.net.ph

Calendar.NextPrevFormat Property

System.Web.UI.WebControls Namespace   Calendar Class


Sets or retrieves the format of the next and previous month hyperlinks in the title.

[ VB ]
Public Property NextPrevFormat As NextPrevFormat

[ C# ]
public NextPrevFormat NextPrevFormat {get; set;}

[ C++ ]
public: __property NextPrevFormat get_NextPrevFormat ( );
public: __property void set_NextPrevFormat ( NextPrevFormat );

[ JScript ]
public function get NextPrevFormat ( ) : NextPrevFormat;
public function set NextPrevFormat ( NextPrevFormat );

Property Value

One of the NextPrevFormat values. The default value is CustomText.

Exceptions


Exception Type Condition
ArgumentException Occurs when the specified value is not one of the NextPrevFormat values.

Remarks

To create your own link text, specify Custom and set the NextMonthText and PrevMonthText properties. The default is Custom.When programming, this property is set using the NextPrevFormat emumeration.

Example

The following example demonstrates how to set the NextPrevFormat property to the short month format.

<asp:Calendar id = "myCalendar" runat = "server"
   NextPrevFormat = "ShortMonth" />
See Also

Calendar Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph