Order-Related Modules for an ASP.NET AJAX Server-Centric Based Online Shopping Website - Viewing the Shopping Cart
(Page 6 of 7 )
This is a must have for the customers that have already logged into the system. When they click the "My Shopping Cart" hyperlink on the left of the "product.aspx" page they will be redirected to another page, "cart.aspx" whose snapshot is shown in the following Figure 17.
Figure 17-the design-time snapshot for viewing the shopping cart
/Building_ASP.NET_AJAX_Server-Centric_Shopping_Website(5)_html_4154a48a.png)
Here, you can click the "Product Name" related hyperlink to view the detailed information about the selected goods or delete it by click the "X" symbol (a hyperlink) at the rightmost of the row. Since this is a simple ASP.NET page we won't discuss it any more. But there is a flaw that needs to be pulled: here although in the "cart.aspx" page the customer can change the count of the specified article, but when he is navigated to another page, "order.aspx." to finally place the order, he still cannot change the number of that article. So, sorry for my not having provided this support; you have to click "Add to the shopping cart" button ntimes if you want to buy nproducts of the related one.
Committing the order
As hinted above, when the user clicks the button labeled "Submit this shopping and create the order" on the "cart.aspx" page he will be navigated to the "order.aspx" page to finally commit the order. Now let's first take a look at one of the run-time snapshot as illustrated in Figure 18.
Figure 18-the run-time snapshot for submitting the final order
/Building_ASP.NET_AJAX_Server-Centric_Shopping_Website(5)_html_20dd60f5.png)
As seen from the figure, the GridView control at the top gives detailed info about each item for purchase. Neighboring it there is a line further totaling all the info above it. The large part at the middle of the page display is the contact information of the current customer. Clicking the "Previous" button will lead the user back to the "View shopping cart" page, while clicking the "Confirm the shopping info and commit the order" button means the user has confirmed all the above info and decided to submit the order to the seller.
Next: Page Initialization >>
More ASP.NET Articles
More By Xianzhong Zhu