Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Calendar DayStyle Property

ASP.NET Calendar DayStyle Property


Calendar Control Calendar control


Definition and Usage

The DayStyle property is used to set or return the style of the dates in the calendar.

Syntax

style

="

value

" />

or

style

="

value

" />

property Description
style Specifies the style to be set. See the Style controlfor the possible styles and their values.
value Specifies the value of the specified style.

Example 1

The following example shows one way to set the DayStyle in the calendar:

Demo Example »


Example 2

The following example shows another way to set the DayStyle in the calendar:

DayStyle-ForeColor="#FF0000" />


Try it - Demo

Set the Calendar control's DayStyle (with declaration and script)


Calendar Control Calendar control