+ All Categories
Home > Documents > Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator...

Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator...

Date post: 13-Dec-2015
Category:
Upload: maud-gibbs
View: 222 times
Download: 1 times
Share this document with a friend
Popular Tags:
22
Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks • Validator controls • DropDownList • ViewState variables • Session variables • Session.Abandon( ) • page.IsPostBack
Transcript
Page 1: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

Review

• ASP Server controls: Labels, Buttons, Textboxes

• HTML tables• Images and

Hyperlinks• Validator controls• DropDownList

• ViewState variables• Session variables• Session.Abandon()• page.IsPostBack

Page 2: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

Preview

• CheckBox• RadioButton• ListBox• RadioButtonList• AccessDataSource• control.DataBind()• ds.Select()• DataView object

• dv.RowFilter• dv(i)• DataRowView object• drv(“name”)

Page 3: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

control.Font properties

• Size

• Italic

• Bold

• Name

Page 4: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

control.Font.Size

property with FontUnit value that defines the size of the control’s

Font

Page 5: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

FontUnit(size)

constructor used to define size of font, where size is an Integer

Page 6: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

control.Font.Italic

Boolean property indicating whether the control’s Font is Italic

Page 7: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

control.Font.Bold

Boolean property indicating whether the control’s Font is Bold

Page 8: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

control.Font.Name

String property specifying the name of the control’s Font family

Page 9: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

control.AutoPostBack

Boolean property indicating whether the control will cause a

post back.

Page 10: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

rbl.SelectedItem

property of type ListItem referring to the RadioButtonList item

selected by the user.

Page 11: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

listitem.Textlistitem.Value

properties of the ListItem object

Page 12: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

ListItem(“item”,value)

Constructs a ListItem object with the specified text and value

Page 13: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

control.Items.Add(listitem)

Add method of the Items collection of the RadioButtonList adds the specified ListItem object

Page 14: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

control.DataBind()

Copies values from data source to server control.

Page 15: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

ds.Select()

Method of the AccessDataSource control that returns a DataView

object.

Page 16: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

DataView

Represents a view of a data table in a data source. Also a collection

of DataRowView objects.

Page 17: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

dv.RowFilter

Property of the DataView object (dv) used to filter rows. Similar to condition of the WHERE clause a

SQL Select statement.

Page 18: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

DataRowView

An object type that represents a single row of data in a DataView

Page 19: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

dv(i)

Refers to an individual element (a row) of the DataView object dv

Page 20: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

drv(“name”)

Refers to an the value of a column in the DataRowView object, drv.

Page 21: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

Data TableDataView, dv

DataRowView, drv

drv(“name”)

dv(0)

Page 22: Review ASP Server controls: Labels, Buttons, Textboxes HTML tables Images and Hyperlinks Validator controls DropDownList ViewState variables Session variables.

If Not IsPostBack Then

DataBind()

End If

Dim dv As DataView = CType(ds.Select(DataSourceSelectArguments.Empty), DataView)

dv.RowFilter = “ID = '" & ddlControl.SelectedValue & "'"

Dim drv As DataRowView = dv(0)

lblField1.Text = drv(“colname1”)

lblField2.Text = drv(“colname2”)

lblField3.Text = drv(“colname3”)


Recommended