12.7. Exercises

  1. If you need to create a user interface that allows a user to display, filter, edit, and delete data coming from a database, what is the best control to use? How do you hook up that control to the database?

  2. Which control would you pick if you want to display a simple list of the genres in your database in the following format:

    <ul>
      <li>Punk</li>
      <li>Hard Rock</li>
      <li>Jazz</li>
      <li>Techno</li>
    </ul>
  3. What's the difference between a BoundField and a TemplateField? When would you use which of the two?

  4. What's the best place to store your connection strings? How do you access the connection strings from that location? And why shouldn't you store them in a page?

Get Beginning ASP.NET 3.5: In C# and VB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.