ASP.NET PrevMonthText Property

Definition and Usage

The PrevMonthText property is used to specify the text displayed on the link of the previous month in the calendar.

Syntax

<asp:Calendar PrevMonthText="string" runat="server" />
Property Description
string Specifies the text displayed on the link of the previous month in the calendar. The default value is "<".

Example

Example 1

The following example shows a calendar with PrevMonthText set to "Prev":

<form runat="server">
<asp:Calendar id="cal1" runat="server"> PrevMonthText="Prev" />
</form>

Example

Set PrevMonthText for Calendar Control