asp.net.ph

Calendar.SelectedDayStyle Property

System.Web.UI.WebControls Namespace   Calendar Class


Returns the style properties for the selected date. This property is read-only.

[ VB ]
Public ReadOnly Property SelectedDayStyle As TableItemStyle

[ C# ]
public TableItemStyle SelectedDayStyle {get;}

[ C++ ]
public: __property TableItemStyle* get_SelectedDayStyle ( );

[ JScript ]
public function get SelectedDayStyle ( ) : TableItemStyle;

Property Value

A TableItemStyle that contains the style properties for the selected date. The default value is an empty TableItemStyle.

Remarks

The selected date is specified by SelectedDate.

If this property is not set, DayStyle is used.

Example

The following example demonstrates how to set the SelectedDayStyle property to a red backColor.

<asp:Calendar id = "myCalendar" runat = "server"
   SelectedDayStyle-BackColor = "red" />
See Also

Calendar Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note