YouTip LogoYouTip

Prop Webcontrol Calendar Selectmonthtext

# ASP.NET Calendar SelectMonthText Property The `SelectMonthText` property is a member of the ASP.NET WebControl Calendar class. It is used to specify the text displayed for the link that allows users to select an entire month in the calendar control. --- ## Definition and Usage The `SelectMonthText` property defines the text or HTML string that appears in the selector column to allow users to select all days in the currently displayed month. > **Important:** This property is only functional and visible when the `SelectionMode` property of the Calendar control is explicitly set to `CalendarSelectionMode.DayWeekMonth` (or `"DayWeekMonth"` in declarative markup). --- ## Syntax ### Declarative Syntax ```xml ``` ### Property Values | Value | Description | | :--- | :--- | | `string` | The text or HTML to display for the month selection link. The default value is `">>"`. | --- ## Code Example The following example demonstrates how to configure an ASP.NET Calendar control to allow month selection, changing the default selector text from `">>`` to `"`->`"`. ```xml <%@ Page Language="C#" %> ASP.NET Calendar SelectMonthText Example

Calendar SelectMonthText Example

``` --- ## Key Considerations 1. **Prerequisite Property**: If `SelectionMode` is set to `None`, `Day`, or `DayWeek`, the month selection column will not be rendered, and the `SelectMonthText` property will have no visible effect. 2. **HTML Support**: You can use plain text or basic HTML entities (such as `>>` or custom icons via `` tags) inside the `SelectMonthText` property to customize the visual appearance of the selector link. 3. **Accessibility**: When using custom symbols like `->` or `>>`, consider providing clear instructions or tooltips for screen readers, as these symbols might not inherently convey the "Select Month" action to visually impaired users.
← Prop Webcontrol Calendar ShowgProp Webcontrol Calendar Selec β†’