ASP.NET Calendar SelectMonthTextProperty


Calendar 控件Calendar Control

Definition and Usage

The SelectMonthText property is used to specify the text displayed in the calendar for selecting an entire month.

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

Syntax

<asp:Calendar SelectMonthText="string" runat="server" />

Property Description
string Specifies the text displayed for selecting an entire month in the calendar. The default value is ">>".


Example

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

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

Live Demo »

Calendar 控件Calendar Control Other Extensions