Modifying the Product Selection Page to Display Discount Information
We needed to make some modifications to a few pages to convey to users a product's special price or discount. The first page we modified was the Product Selection page. As with most of the ASP.NET code in the MyGolfGear.NET application, we had to make changes to a code behind class as well as an .aspx file.
ProductSelection.aspx.cs
When the Page_Load method is called, it in turn calls the FillProductList method. The FillProductList method, shown in Listing 8.4, is responsible for filling in the DataList object used on the ProductSelection.aspx page.
Listing 8.4. The FillProductList Method
protected void FillProductList() { OrderManager ordermanager = new OrderManager(); decimal ... |
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.