Sunday 1 July 2012

ASP.NET Calender

Calendar control in asp.net is used to take a date as a input e.g. dob,hire date,birthday etc.
This control displays a full month at a time and you can select a single day or date from it.Similarly you can get single day,month,year,minutes,seconds and milliseconds etc.

Some Commonly Used Properties of Calendar
Caption Property:
This property set gets or sets the caption of the calendar control.
CaptionAlign Property:
This property gets or sets the alignment for caption of the calendar.
DaHeaderStyle Property:
This is used to gets the style properties for portion on the calendar that displays the day of the week.
DayNameFormat Property:
This is used to gets or sets the format of the day of the week.
DayStyle Property:
This is used to gets the style properties for the in displayed month.
FirstDayOfWeek Property:
This property define which day of week will be displayed in the first column of the calendar.
NextMonthText Property:
This is used to gets or sets the text of the next month navigation control.Usually it is >>.
NextPrevFormat Property:
This is used to gets or sets the format of the next ans previous month of the navigation control.
PrevMonthText Property:
This is used to gats or sets the text of the previous month navigation control.
SelectedDate Property:
This is used to gets or sets the selected date of the calendar.
SelectedDates Property:
This is used to gets or sets the list of selected dates.
SelectedDayStyle Property:
This is used to gets or sets the selected style properties of the date.
TodaysDate Property:
This is used to gets or sets the value for the today's date.

Some  Commonly Used Event For Calendar Control
SelectionChanged Event:
This event is raised when a single day,week or month is selected.
DayRender Event:
This event is raised when a single cell of the calendar is rendered.

No comments:

Post a Comment