Summary

In this hour we created the first of the two ASP.NET Web pages that comprise the online guestbook application. The AddEntry.aspx Web page contains three TextBox Web controls, for the user's name, e-mail address, and message, as well as a Button Web control. RequiredFieldValidator Web controls were added for the Name and Message TextBox Web controls to ensure that the user supplies a name and a message, while a RegularExpressionValidator was added to the Email textbox to ensure that the provided e-mail is in a legal e-mail address format.

Next we used the INSERT Data Method Code Builder to add a function (InsertGuestbookEntries()) that performed the actual work of inserting a new record into the GuestbookEntries database table. This created ...

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.