1 / 9

Data Listing Web Controls MacDonald Ch. 13-14

Data Listing Web Controls MacDonald Ch. 13-14. MIS 324 Professor Sandvig. Outline. Web Controls Overview Tabular Repeater DataList GridView Single Record FormView DetailsView. Web Controls Overview. Classes all located in system.web.ui.webcontrols namespace Documentation

oren
Download Presentation

Data Listing Web Controls MacDonald Ch. 13-14

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Data Listing Web ControlsMacDonald Ch. 13-14 MIS 324 Professor Sandvig

  2. Outline • Web Controls Overview • Tabular • Repeater • DataList • GridView • Single Record • FormView • DetailsView

  3. Web Controls Overview • Classes all located in system.web.ui.webcontrols namespace • Documentation • Too many controls to cover • New controls added each version • Focus on essential controls & concepts

  4. Web Controls Overview • Simple Controls • Display single items • Correspond to HTML tags • textbox, radiobutton, checkbox, button… • List Controls • Name/Value pairs • RadioButtonList, CheckBoxList, Dropdown List

  5. Web Control Overview • Tabular Controls • Display > 1 column • DataList, GridView, Repeater • Single Record Controls • FormView • Templates • Use to describe data format

  6. Tabular Controls Display multiple columns of data • GridView • Display data in table format • Most features – editing, paging, sorting • Constraint: one data item per cell • DataList • No default format – must use templates • Very flexible formatting • Editing features • Repeater • Read only, most efficient for data display • No default format – must use templates

  7. Tabular Controls • Consist of rows and fields • Fields may contain other controls • Buttons • Hyperlinks • Textboxes • DropDownLists • Other tabular controls • Need to access control properties • “FindControl” method • Handle control events • Events “bubble up” to parent control

  8. Tabular Controls • DataList Control • Very flexible format • Template required • Supports editing • Repeat columns property • Example: DataListing (source) • Web.configsource

  9. Summary • Data Access • Programmatic • Connection & command objects • Declarative • Drag & drop via VS • Data listing server controls • List controls • Tabular Controls • Next: two-way databinding

More Related