Events
Click
raised when the Button is clicked and the form is sub-
mitted to the server for processing
Command
raised when the Button is clicked and the form is sub-
mitted to the server for processing; passes the values
of the CommandName and CommandArgument properties
Calendar
Properties
CellPadding
specifies the number of pixels between a cell and its
border
CellSpacing
specifies the number of pixels between cells
DayHeaderStyle
specifies the style of the weekdays listed at the top of
the calendar
DayNameFormat
sets the format of day names; possible values are
FirstLetter, FirstTwoLetters, Full, and Short.
DayStyle
specifies the style applied to each day in the calendar
FirstDayOfWeek
specifies which day of the week is displayed in the first
column
NextMonthText
if ShowNextPrevMonth is True, specifies the text for
the next month hyperlink
NextPrevFormat
specifies the format for the next and previous hyper-
links
NextPrevStyle
specifies the style to use for next and previous month
links
OtherMonthDayStyle
specifies the style to use to display days of adjacent
months within the current months calendar
615
Calendar
PrevMonthText
if ShowNextPrevMonth is True, specifies the text for
the previous month hyperlink
SelectedDate
contains a date-and-time value that specifies a high-
lighted day
SelectedDates
contains a collection of date-and-time values that spe-
cify the highlighted days
SelectedDayStyle
specifies the style to use for the currently selected day
SelectionMode
determines whether or not days, weeks, or months can
be selected; possible values are Day, DayWeek, DayWeek-
Month, and None
SelectMonthText
contains the HTML text displayed in the month selec-
tor column; default value is >>, which is
rendered as >>
SelectorStyle
specifies the style to be applied to the link for selecting
week and month
SelectWeekText
contains HTML text displayed for selecting weeks when
SelectionMode has the value DayWeek or DayWeekMonth
ShowDayHeader
if True, displays the names of the days of the week
ShowGridLines
if True, renders the calendar with a border around each
days cell
ShowNextPrevMonth
if True, displays links to the next and previous months
ShowTitle
if True, displays the calendars title
TitleFormat
determines how the month name appears in the title
bar; possible values are Month and MonthYear
TitleStyle
specifies the style to use for text within the title bar
TodayDayStyle
specifies the style to use for the current day
TodaysDate
specifies a DateTime value that sets the calendars
current date
616
Appendix A: Web Control Reference

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.