Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
After an order is placed by the customer, he/she can track his/her order by clicking the menu item, Track Your Order, after logging in. There are three types of status associated with an order in this system: Confirmed, Dispatched, and Shipped. As soon as a customer places an order successfully, the order status is Confirmed. The Administrator or Manager of the site keeps track of all the orders and processes them one by one. After the order is dispatched from the site, the status of that order is changed to Dispatched. After the order reaches the customer, the status is changed to Shipped. These activities are done in Administration, which we will discuss in upcoming sections.
Let’s create the page TrackOrder.aspx to track the orders of a customer. This page also has three sections. The first block holds a drop-down list containing OrderIds generated by the customer so far. The second block holds the OrderId and Order Generated date and its status. The third block holds the Order details of the selected order. The aspx source for the first two blocks is shown in the following code. The source for the third block—that is, the Order details, is not pasted here as it is the same as in the Review Order section of the Order.aspx page. Refer to the book’s web site for the entire source: