CalendarDay.IsWeekend Property
.NET Framework 3.0
Gets a value that indicates whether the date represented by an instance of this class is a either Saturday or Sunday. This property is read-only.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
CalendarDay Members
System.Web.UI.WebControls Namespace
Calendar
Calendar.DayRender Event
DayRenderEventArgs
Day
CalendarDay.IsOtherMonth Property
CalendarDay.IsSelectable Property
CalendarDay.IsSelected Property
CalendarDay.IsToday Property
Calendar Web Server Control Overview
Assembly: System.Web (in system.web.dll)
The following example demonstrates how to use the properties of a CalendarDay object to determine whether the date being rendered in the DayRender event is in the displayed month and are not either a Saturday or a Sunday. These dates are displayed in yellow. Note that the Day property of the DayRenderEventArgs object passed into the DayRender event handler is the CalendarDay object.
Reference
CalendarDay ClassCalendarDay Members
System.Web.UI.WebControls Namespace
Calendar
Calendar.DayRender Event
DayRenderEventArgs
Day
CalendarDay.IsOtherMonth Property
CalendarDay.IsSelectable Property
CalendarDay.IsSelected Property
CalendarDay.IsToday Property
Other Resources
Calendar Web Server ControlCalendar Web Server Control Overview
Community Additions
ADD
Show: