<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CartControl.ascx.cs" Inherits="CartControl" %> <style type="text/css"> .style1 { text-align: center; } </style> <div class="style1"> style="color: #FFFFFF; font-size: xx-large"><br /> Your Shopping Cart </div> <br /> <asp:GridView ID="grdCart" runat="server" AutoGenerateColumns="False" DataKeyNames="ProductID" OnRowCancelingEdit="grdCart_RowCancelingEdit" OnRowDeleting="grdCart_RowDeleting" OnRowEditing="grdCart_RowEditing" OnRowUpdating="grdCart_RowUpdating" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black" style="margin-left: 158px" > <columns> <asp:TemplateField> <itemtemplate> <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("filename") %>' /> </itemtemplate> <asp:BoundField DataField="ProductID" HeaderText="ID" ReadOnly="True" /> <asp:BoundField DataField="ProductName" HeaderText="Product" ReadOnly="True" /> <asp:BoundField DataField="Quantity" HeaderText="Quantity" /> <asp:BoundField DataField="Price" DataFormatString="{0:c}" HeaderText="Price" ReadOnly="True" /> <asp:BoundField DataField="SubTotal" DataFormatString="{0:c}" HeaderText="Total" ReadOnly="True" /> <asp:CommandField ShowDeleteButton="True" ShowEditButton="True"/> </columns> <emptydatatemplate> Your Shopping Cart is empty, add items <a href="Products.aspx" style="font-size: 11px; color: black">Add Products</a> </emptydatatemplate> <footerstyle backcolor="#CCCCCC" /> <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" /> <pagerstyle backcolor="#CCCCCC" forecolor="Black" horizontalalign="Left" /> <rowstyle backcolor="White" /> <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" /> <sortedascendingcellstyle backcolor="#F1F1F1" /> <sortedascendingheaderstyle backcolor="#808080" /> <sorteddescendingcellstyle backcolor="#CAC9C9" /> <sorteddescendingheaderstyle backcolor="#383838" /> <asp:Label ID="TotalLabel" runat="server" style="margin-left: 247px; font-weight: 700; color: #FFFFFF;"><br /> <asp:ImageButton ID="btnCashOut" runat="server" ImageUrl="~/Image/cashoutd.png" style="margin-left: 247px; margin-top: 0px" onclick="btnCashOut_Click"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)