1 / 9

Web Server Controls MacDonald Ch. 5

Web Server Controls MacDonald Ch. 5. MIS 324 Professor Sandvig. Today. Benefits of Server Controls Overview of HTML-like controls Controls unique to ASP.NET Data-listing controls Example. ASP.NET Controls. Benefits of Server Controls. Objects with many properties & methods Events:

garson
Télécharger la présentation

Web Server Controls MacDonald Ch. 5

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. Web Server ControlsMacDonald Ch. 5 MIS 324 Professor Sandvig

  2. Today • Benefits of Server Controls • Overview of HTML-like controls • Controls unique to ASP.NET • Data-listing controls • Example

  3. ASP.NET Controls

  4. Benefits of Server Controls • Objects with many properties & methods • Events: • onTextChanged • onCheckedChanged • onClick… • Data stored in viewstate • Validation controls • Client & server validation

  5. HTML-like controls • Correspond to HTML tags: • Textbox • textarea • Button • Checkbox • Radiobutton • DropDown • Image • Hyperlink • Label

  6. Other Controls • LinkButton control • Looks like hyperlink • Acts like a button (postback) • Panel Control • Use to hide/show groups of controls • Visible property • Can still access & change hidden control properties • Use frequently

  7. DataListing Controls • Datalisting controls • Typically fill from datasource • RadioButtonList • CheckBoxList • GridView • Repeater • DetailsView • FormView • Example: CheckBoxListControl.aspx (source) • Discuss in Ch. 13 ADO.NET

  8. Examples • Controls Used: • Panel, textbox, button, dropdown list, checkbox list, hyperlink, label, required field validator, custom validator • Baker Snowboard: source, output

  9. Web Form Summary • Web Server controls write HTML • Benefits: • Viewstate • Programmatic access • Properties • Events • Methods • Validation controls

More Related