Easy Tutorial
❮ Mvc Intro Prop Webcontrol Textbox Rows ❯

ASP.NET Calendar OtherMonthDayStyle Property



Definition and Usage

The OtherMonthDayStyle property is used to set or return the style of dates in the calendar that do not belong to the current month.

Syntax

Property Description
style Specifies the style to be set. See Style Control
value Specifies the value of the specified style.

Example 1

The following example demonstrates one way to set the OtherMonthDayStyle in the calendar:


Example 2

The following example demonstrates another way to set the OtherMonthDayStyle in the calendar:


Try It - Demo

Set OtherMonthDayStyle of Calendar Control (with declaration and script)


❮ Mvc Intro Prop Webcontrol Textbox Rows ❯