System.Web.UI.WebControls Namespace Calendar Class
Returns the style properties for the days. This property is read-only.
[ VB ]
Public ReadOnly Property DayStyle As TableItemStyle
[ C# ]
public TableItemStyle DayStyle {get;}
[ C++ ]
public: __property TableItemStyle* get_DayStyle ( );
[ JScript ]
public function get DayStyle ( ) : TableItemStyle;
A TableItemStyle tha contains the style properties for the days. The default value is an empty TableItemStyle.
This is the default day style for the Calendar.
The following example demonstrates how to set the DayStyle property to red.
<asp:Calendar id = "myCalendar" runat = "server"
DayStyle-BackColor = "#ff0000" />
Calendar Members