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

CheckBox

VisibleDate

specifies a DateTime value that sets the month to dis-

 

play

WeekendDayStyle

specifies the style to use for weekend days

Events

 

DayRender

raised before each day cell is rendered on the calendar

SelectionChanged

raised when a new day, month, or week is selected

VisibleMonthChanged

raised by clicking the next or previous month links

CheckBox

Properties

AutoPostBack

when True, automatically posts the form containing

 

the CheckBox whenever it’s checked or unchecked

Checked

shows the CheckBox as checked if set to True

Text

specifies the text displayed next to the CheckBox

TextAlign

determines how the text associated with the CheckBox

 

is aligned; possible values are Left and Right

Events

 

CheckedChanged

raised when the CheckBox is checked or unchecked

CheckBoxList

Properties

AutoPostBack

if True, automatically posts the form containing the

 

CheckBoxList whenever a CheckBox is checked or un-

 

checked

CellPadding

sets the number of pixels between the border and a

 

particular CheckBox

617

Appendix A: Web Control Reference

CellSpacing

sets the number of pixels between individual

 

CheckBoxes within the CheckBoxList

DataMember

represents the particular table within the data source

DataSource

represents the actual data source to use when binding

 

to a CheckBoxList

DataTextField

represents the field within the data source to use with

 

the CheckBoxList text label

DataTextFormatString

a format string that determines how the data is dis-

 

played

DataValueField

represents the field within the data source to use with

 

the CheckBoxList’s value

Items

the collection of items within the CheckBoxList

RepeatColumns

determines the number of columns to use when display-

 

ing the CheckBoxList

RepeatDirection

indicates the direction in which the CheckBoxes should

 

repeat; possible values are Horizontal and Vertical

RepeatLayout

determines how the check boxes are formatted; possible

 

values are Table and Flow; default is Table

SelectedIndex

represents the index selected within the CheckBoxList

SelectedItem

represents the item selected within the CheckBoxList

Events

SelectedIndexChanged raised when a CheckBox within the CheckBoxList is selected

618