优智德良网

         
当前位置: 主页 > 程序测试 >

ASP.NET购物车模拟系统英语翻译英文原文

时间:2022-08-02 23:37 来源:网络整理 转载:优智德良网
锐英源软件的ASP.NET购物车模拟系统英语翻译英文原文

This application is a Shopping Cart where users can select items and place an order. I have added the features of login, and adding new users if user does not exist. Validations are performed wherever needed like email format validation, zipcode etc.< /p> Fig. 1

Database: For the purpose, I have used the NorthWind database and SQL Server.
The two main tables used are:

Products table

Order Details table.

I have used two classes:

public class CartRow { public string id;public string name; public string price; public string items; }; public class Cart { public System.Collections.ArrayList list = new ArrayList(20); };

The two main web-forms are Main.aspx and CheckOut.aspx. Main.aspx contains a grid showing all items present in the products table along with the price per unit and the quantity per unit. Fig 1 shows the Main.aspx page, where user can select items from the products grid (left). As he selects an item, it is added to his cart and the item is displayed in the right panel. The total price is displayed in the label above. As the user adds more items to his cart, the recalculated price is shown. Upon clicking the clear cart button, the cart gets empty.
If the user now wants to finalize the order and presses the CheckOut button, he is redirected to the Login.aspx page (Fig 2). I have set the default username as ?user? for the sample and password is “u”.
Fig 2.

------分隔线----------------------------
栏目列表
推荐内容