System.Web.UI.WebControls.Calendar Class
Creates a calendar object that can be used in a web page.

See Also: Calendar Members

Syntax

[System.Web.UI.SupportsEventValidation]
[System.Web.UI.ControlValueProperty("SelectedDate", "1/1/0001 12:00:00 AM")]
[System.ComponentModel.Designer("System.Web.UI.Design.WebControls.CalendarDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")]
[System.ComponentModel.DefaultProperty("SelectedDate")]
[System.ComponentModel.DefaultEvent("SelectionChanged")]
[System.Web.UI.DataBindingHandler("System.Web.UI.Design.WebControls.CalendarDataBindingHandler, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public class Calendar : WebControl, System.Web.UI.IPostBackEventHandler

Remarks

This is how the calendar can be created and how to setup all styles as css class so yu can finetune the feel and look of the calendar.

C# Example

	<asp:Calendar runat="server" BorderStyle="double"
	 BorderColor="#E7E5DB" BorderWidth="2" BackColor="#F8F7F4"
	 Font--Size=".9em" Font--Names="Verdana" class="TableThin">
	   <TodayDayStyle cssclass="calendar_today" />
	   <OtherMonthDayStyle cssclass="calendar_other"/>
	   <SelectedDayStyle cssclass="calendar_selected" />
	   <TitleStyle cssclass="calendar_title" />
	   <NextPrevStyle cssclass="calendar_pager" />
	   <DayStyle cssclass="calendar_day" />
	   <SelectorStyle cssclass="calendar_selector"/>
	   <WeekendDayStyle cssclass="calendar_weekend"/>
	   <DayHeaderStyle cssclass="calendar_dayheader"/>
	</asp:Calendar>
  

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0