Implementing the User Interface

Back in Hour 21 we sketched out a user interface design for the Web page that would display the existing guestbook entries. This sketch, which you can find in Figure 21.2, displayed the guestbook entries in a grid with a row for each guestbook entry and a column for the name, e-mail address, message, and date signed. As you know by now, the DataGrid Web control will serve as an ideal Web control for this user interface because it displays database data in a grid format.

It's now time to create an ASP.NET Web page that implements this interface. Start by creating a new ASP.NET Web page named ViewGuestbook.aspx. Next turn on glyphs; because we will be using a pageable DataGrid to display the guestbook entries, it ...

Get SAMS Teach Yourself ASP.NET in 24 Hours 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.