90 likes | 222 Vues
This outline provides a detailed overview of various ASP.NET web controls, emphasizing their roles in displaying and managing data effectively. It covers simple controls such as textbox and checkbox, as well as more complex tabular controls like GridView, DataList, and Repeater. Each control is analyzed in terms of functionality, formatting, and use cases, with an emphasis on essential concepts and practical applications. The resources aim to assist developers in leveraging these controls for optimal data handling and user interaction in web applications.
E N D
Data Listing Web ControlsMacDonald 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 • Too many controls to cover • New controls added each version • Focus on essential controls & concepts
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
Web Control Overview • Tabular Controls • Display > 1 column • DataList, GridView, Repeater • Single Record Controls • FormView • Templates • Use to describe data format
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
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
Tabular Controls • DataList Control • Very flexible format • Template required • Supports editing • Repeat columns property • Example: DataListing (source) • Web.configsource
Summary • Data Access • Programmatic • Connection & command objects • Declarative • Drag & drop via VS • Data listing server controls • List controls • Tabular Controls • Next: two-way databinding