Chapter 04: Using Server Controls - MCTS Exam 70-515

Table of Contents [Hide/Show]


   Lesson 1: Exploring Common Server Controls
      Label Control
      Literal Control
      TextBox Control
      ChecBox Control
      RadioButton Control
      DropDownList Control
      ListBox Control
      Button Control
      HTML Server Controls
   Lesson 2: Exploring Specialized Server Controls
      Table, TableRow, and TableCell
      Image
      ImageButton
      ImageMap
      Calendar
      FileUpload
      Panel
      MultiView and View
      Wizard
      Xml


Lesson 1: Exploring Common Server Controls

Label Control


Literal Control

The Mode property determines how the Text property gets rendered

ModeDescription
PassThroughThe Text content is rendered as is.
EncodeThe Text content is HTML-encoded. For security reasons, use this mode when rendering user input.
TransformThe Text content is converted to match the markup language of the requesting browser, such as HTML, XHTML, WML, or cHTML

TextBox Control


ChecBox Control


RadioButton Control


DropDownList Control


ListBox Control


Button Control


HTML Server Controls


Lesson 2: Exploring Specialized Server Controls

Table, TableRow, and TableCell


Image


ImageButton


ImageMap


PropertyDescription
AccessKey, AlternateText, NavigateUrl, TabIndexSame as for other controls
HotSpotModeWhat happens when the hot spot is clicked: NotSet, Inactive, Navigate (default), or PostBack
NavigateUrl, TargetSame as for HyperLink control
PostBackValueString argument passed back to the server via EventArg property

Calendar


PropertyDescription
Caption The text that is rendered in the Calendar.
CaptionAlign The alignment of the caption: Top, Bottom, Left, Right, or NotSet.
CellPadding The space between each cell and the cell border.
CellSpacing The spacing between each cell.
DayHeaderStyle The style to be applied to days of the week.
DayNameFormat The format for the names of the days of the week: FirstLetter, FirstTwoLetters, Full, Short, Shortest.
DayStyle The default style for a calendar day.
FirstDayOfWeek The day of the week to display in the first column of the Calendar control.
NextMonthText The text to be displayed in the next month navigation control; > is the default. This navigational control is only displayed if ShowNextPrevMonth property is true.
UseAccessibleHeader A control that, when set to true, generates <th> for day headers (the default), or, when set to false, generates <td> for day headers, to be compatible with version 1.0 of the .NET Framework.
VisibleDate Specifies the date that identifies which month to display in the Calendar control’s header area.
WeekendDayStyle The style of weekend days.

FileUpload


Panel


MultiView and View


Wizard



Xml