Export (0) Print
Expand All

Calendar.NextPrevFormat Property

Gets or sets the format of the next and previous month navigation elements in the title section of the Calendar control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

No code example is currently available or this language may not be supported.
/** @property */
public NextPrevFormat get_NextPrevFormat ()

/** @property */
public void set_NextPrevFormat (NextPrevFormat value)

public function get NextPrevFormat () : NextPrevFormat

public function set NextPrevFormat (value : NextPrevFormat)

Property Value

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

Exception typeCondition

ArgumentException

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.

TopicLocation
How to: Customize Calendar Web Server Control AppearanceBuilding ASP .NET Web Applications
How to: Customize Calendar Web Server Control AppearanceBuilding ASP .NET Web Applications

The following code example demonstrates how to use the NextPrevFormat property to specify the short month format for the navigation controls.

<%@ Page Language="JScript" AutoEventWireup="True" %>
<html>
<head>

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           ShowNextPrev="True"
           NextPrevFormat="ShortMonth"/>
            
   </form>
        

</body>
</html>


No code example is currently available or this language may not be supported.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft