Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Build Your Own ASP.NET 2.0 Web Site Using CSharp And VB (2006) [eng]-1.pdf
Скачиваний:
142
Добавлен:
16.08.2013
Размер:
15.69 Mб
Скачать

Calendar

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 month’s calendar

615

Appendix A: Web Control Reference

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

 

day’s cell

ShowNextPrevMonth

if True, displays links to the next and previous months

ShowTitle

if True, displays the calendar’s 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 calendar’s

 

current date

616