SHARE
TWEET

Untitled

185522x Aug 3rd, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ViewCart.aspx.cs" Inherits="Pages_ViewCart" %>
  2.  
  3. <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  4. </asp:Content>
  5. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  6.     <asp:GridView ID="gv_CartView" runat="server" CssClass="Grid"  PagerStyle-CssClass="pgr" AutoGenerateColumns="False" DataKeyNames="Prod_ID" OnRowCommand="gv_CartView_RowCommand" OnSelectedIndexChanged="gv_CartView_SelectedIndexChanged">
  7.         <Columns>
  8.             <asp:BoundField DataField="Prod_ID" HeaderText="Product ID" />
  9.             <asp:ImageField DataImageUrlField="Prod_Image_Url" ControlStyle-Width="60" ControlStyle-Height = "60"
  10.                  DataImageUrlFormatString="{0}" HeaderText="Product Image">
  11.             </asp:ImageField>
  12.             <asp:BoundField DataField="Prod_Name" HeaderText="Product Name" />
  13.             <asp:TemplateField HeaderText="Quantity">
  14.                 <ItemTemplate>
  15.                     <asp:TextBox ID="tb_Quantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:TextBox>
  16.                     <br />
  17.                     <asp:LinkButton ID="btn_Remove" runat="server" CommandArgument='<%# Eval("Prod_ID") %>' CommandName="Remove">Remove</asp:LinkButton>
  18.                 </ItemTemplate>
  19.             </asp:TemplateField>
  20.             <asp:BoundField DataField="Prod_Unit_Price" DataFormatString="{0:$###,###,###,###.##}" HeaderText="Unit Price" />
  21.             <asp:BoundField DataField="Total_Price" DataFormatString="{0:$###,###,###,###.##}" HeaderText="Total Price" />
  22.         </Columns>
  23.     </asp:GridView>
  24.     <br />
  25.     Total Price =<asp:Label ID="lbl_TotalPrice" runat="server" Text="$0"></asp:Label>
  26.     <br />
  27.     <asp:Label ID="lbl_Error" runat="server"></asp:Label>
  28.     <br />
  29.     <asp:Button ID="btn_Update" runat="server" OnClick="btn_Update_Click" Text="Update Cart" CssClass="button" />
  30.     <asp:Button ID="btn_Clear" runat="server" OnClick="btn_Clear_Click" Text="Clear Cart" CssClass="button" />
  31.     <asp:Button ID="btn_Back" runat="server" OnClick="btn_Back_Click" Text="Back" CssClass="button" />
  32.     <br />
  33.     <br />
  34.     <asp:Button ID="btn_Checkout" runat="server" OnClick="btn_Checkout_Click1" Text="Check Out" CssClass="button" />
  35.     <br />
  36.  
  37. </asp:Content>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top