Testing the AddEntry.aspx ASP.NET Web Page

Before moving on to the next hour, “Displaying the Guestbook's Contents,” where we'll create the ViewGuestbook.aspx ASP.NET Web page, let's take a moment to test the AddEntry.aspx Web page. View the AddEntry.aspx Web page through a browser. Enter your name, e-mail address, and a short message and click the Add Comment button.

The ASP.NET Web page will be posted back, and the Button's Click event handler will execute. Assuming the input is valid, the InsertGuestbookEntry() function will be called, which will add a new record to the GuestbookEntries table. Finally, you will be automatically redirected to the ViewGuestbook.aspx Web page. Of course, this Web page doesn't exist yet, so you should see some ...

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.