CalendarDay.IsWeekend Property
.NET Framework 2.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 Class
Calendar.DayRender Event
DayRenderEventArgs
Day
CalendarDay.IsOtherMonth Property
CalendarDay.IsSelectable Property
CalendarDay.IsSelected Property
CalendarDay.IsToday Property
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.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
CalendarDay ClassCalendarDay Members
System.Web.UI.WebControls Namespace
Calendar Class
Calendar.DayRender Event
DayRenderEventArgs
Day
CalendarDay.IsOtherMonth Property
CalendarDay.IsSelectable Property
CalendarDay.IsSelected Property
CalendarDay.IsToday Property
Other Resources
Calendar Web Server ControlCommunity Additions
ADD
Show: