ASP.NET SelectMonthText Property

Definition and Usage

The SelectMonthText property specifies the text for selecting an entire month in the calendar.

Note:This property takes effect only when the SelectionMode property is set to DayWeekMonth.

Syntax

<asp:Calendar SelectMonthText="string" runat="server" />
Property Description
string Specifies the text for selecting an entire month in the calendar. The default value is ">>".

Example

The following example shows a calendar where SelectMonthText is set to "->":

<form runat="server">
<asp:Calendar id="cal1" runat="server" 
SelectMonthText="->" SelectionMode="DayWeekMonth" /> 
</form>

Example

Set SelectMonthText for Calendar Control