Developing the Confirmation Page

The confirmation page is usually one of the simplest pages of the site to develop, and for MyGolfGear.NET, this held true. The purpose of the confirmation page is to ensure the users that their orders have been successfully submitted. Confirming the order, combined with showing the order on the order status page, is a great way to ease the worries of your users. Our confirmation page shows the users a Your order has been received... message, the order ID for the order, and a link that will take the users to the order status page.

The confirmation page does not have much code associated with it. Listing 15.15 shows the code necessary to produce the page.

Listing 15.15. The Page_Load Method of confirmation.aspx.cs ...

Get Building e-Commerce Sites with the .NET Framework 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.