Working with Data Source Controls and Data-Bound Controls in ASP.NET

  • 12/10/2010

Suggested Practices

To help you successfully master the exam objectives presented in this chapter, complete the following tasks.

Create Pages by Using Each of the Controls

For this task, you should complete Practice 1 for the data source controls. Practice 2 should be completed for additional use of the data-bound web controls. If attempting Practice 2, you should complete Practice 1 first. Practice 3 provides experience with using the insert, update, and delete parts of a data source control.

  • Practice 1 Create a new website and add a new page for each of the data source controls in this chapter, especially those not defined in the practice for Lesson 1. Configure these controls to access data.

  • Practice 2 Add the ability to display the data defined in the pages in Practice 1. For each data source, select a different display control. Use the Menu control for XML data. Also, be sure to define a layout control that uses templates.

  • Practice 3 Return to the practice for Lesson 1. Edit the site to enable customer editing.

Create a Master-Detail Solution by Using the Data-Bound Server Controls

This practice gives you experience with using data-bound server controls.

  • Create a new website that uses a domain familiar to you, such as customers and orders, owners and vehicles, employees and sick days, or albums and songs. Add a webpage that is configurable as a master-detail page to provide access to related data.

Work with Dynamic Data Websites

For this task, you should complete Practices 1 and 2 to gain experience creating custom field and page templates. Complete Practice 3 for experience with using Dynamic Data outside a Dynamic Data website.

  • Practice 1 Return to the practice from Lesson 3. Create a custom field template for selecting dates. Use the CalendarPicker example from the chapter. Apply this control to date values in the site.

  • Practice 2 Return to the practice from Lesson 3. Create a custom page template for displaying only portions of an Employee object.

  • Practice 3 Create a new, standard ASP.NET website. Define a data context connected to a database. Enable Dynamic Data for a single page within the site (without adding the scaffolding support).