Calendar::PrevMonthText Property
Gets or sets the text displayed for the previous month navigation control.
Assembly: System.Web (in System.Web.dll)
<asp:Calendar PrevMonthText="String" />
Property Value
Type: System::StringThe caption text for the previous month navigation control. The default value is "<", which is rendered as the less than sign (<).
Use the PrevMonthText property to provide custom text for the previous month navigation control. This property is commonly used along with the NextMonthText property to provide a custom set of navigation controls.
Note |
|---|
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 PrevMonthText 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.
| 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.
Note