Export (0) Print
Expand All

Calendar.NextMonthText Property

Gets or sets the text displayed for the next month navigation control.

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

[LocalizableAttribute(true)] 
public string NextMonthText { get; set; }
/** @property */
public String get_NextMonthText ()

/** @property */
public void set_NextMonthText (String value)

public function get NextMonthText () : String

public function set NextMonthText (value : String)

Property Value

The caption text for the next month navigation control. The default value is ">", which is rendered as the greater than sign (>).

Use the NextMonthText property to provide custom text for the next month navigation control. This property is commonly used along with the PrevMonthText property to provide a custom set of navigation controls.

NoteNote

This property does not automatically encode to HTML. You need to convert special characters to the appropriate HTML value, unless you want the characters to be treated as HTML. For example, to explicitly display the greater than symbol (>), you must use the value >.

Because this property does not automatically encode to HTML, it is possible to specify an HTML tag for the NextMonthText property. For example, if you want to display an image for the next month navigation control, you can set this property to an expression that contains an <img> element.

This property applies only if the ShowNextPrevMonth property is set to true.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.

The following code example demonstrates how to use the NextMonthText property to specify custom text for the navigation control to the next month.

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

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           NextMonthText="Next"
           PrevMonthText="Prev"/>
            
   </form>
        

</body>
</html>


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