Chapter 4. Managing Data and Other CRUD

In This Chapter

  • Using Tasks menus

  • Inserting, sorting, editing, and deleting data

  • Formatting a date

  • Using the FormView control's templates

  • Improving performance with the UpdatePanel

The preceding chapter shows how to create a read-only list of DVDs by building a database and dropping a database table onto a Web page. Although it's a great start, you haven't met the requirements set by the client (my niece Julie). Julie wants CRUD on her page:

  • Create: The ability to insert new DVDs into the database

  • Retrieve: Fetch the list of DVDs and display it nicely

  • Update: Change the information about a DVD in the collection

  • Delete: Remove a DVD from the list

This chapter uses the same ASP.NET page and database as the last chapter. You can create the page and database by going through the steps, or you can shortcut the process by downloading everything from this book's Web site.

Here are some other enhancements you supply in this chapter:

  • Make the font and table design more attractive

  • Fix the column title text

  • Do something about the ridiculous, geeky time on the date display

  • Replace Untitled Page with a real title

  • Get rid of the screen flash

Get ASP.NET 3.5 For Dummies® 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.