Cart.aspx
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:5k
源码类别:

Email客户端

开发平台:

Visual C++

  1. <%@ Page Language="C#" MasterPageFile="~/AppMaster.master" AutoEventWireup="true"
  2.   CodeFile="Cart.aspx.cs" Inherits="Cart" Title="查看购物车" %>
  3. <asp:Content ID="Content2" ContentPlaceHolderID="phMain" runat="Server">
  4.   <asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="300px">
  5.     对不起,你没有<a href="Login.aspx">登录</a></asp:Panel>
  6.   <br />
  7.   <asp:Panel ID="panel2" runat="server" Visible="false">
  8.     <table cellspacing="0" cellpadding="0" width="480" align="center" border="0">
  9.       <tr style="font: 9pt; font-family: 宋体;">
  10.         <th align="left" height="25" colspan="2">
  11.           &nbsp;&nbsp;<asp:Label ID="lblTitleInfo" runat="server">购物车</asp:Label>
  12.         </th>
  13.       </tr>
  14.     </table>
  15.     <table cellspacing="1" cellpadding="1" width="480" align="center" border="0">
  16.       <tr style="font: 9pt; font-family: 宋体;">
  17.         <td>
  18.           <table cellspacing="0" cellpadding="0" width="95%" align="center" border="0">
  19.             <tr style="font: 9pt; font-family: 宋体;">
  20.               <td align="left" style="height: 135px">
  21.                 <asp:GridView ID="gvShopCart" DataKeyNames="CartID" runat="server" AllowPaging="True"
  22.                   AutoGenerateColumns="False" PageSize="5" OnPageIndexChanging="gvShopCart_PageIndexChanging"
  23.                   OnRowCancelingEdit="gvShopCart_RowCancelingEdit" OnRowDeleting="gvShopCart_RowDeleting"
  24.                   OnRowEditing="gvShopCart_RowEditing" OnRowUpdating="gvShopCart_RowUpdating" Width="475px">
  25.                   <Columns>
  26.                     <asp:BoundField DataField="GoodsName" HeaderText="商品名称" ReadOnly="True">
  27.                       <ItemStyle HorizontalAlign="Center" />
  28.                       <HeaderStyle HorizontalAlign="Center" />
  29.                     </asp:BoundField>
  30.                     <asp:TemplateField HeaderText="市场价">
  31.                       <HeaderStyle HorizontalAlign="Center" />
  32.                       <ItemStyle HorizontalAlign="Center" />
  33.                       <ItemTemplate>
  34.                         <%#GetMKPStr(DataBinder.Eval(Container.DataItem,"MarketPrice").ToString())%>
  35.                         ¥
  36.                       </ItemTemplate>
  37.                     </asp:TemplateField>
  38.                     <asp:TemplateField HeaderText="普通会员价">
  39.                       <HeaderStyle HorizontalAlign="Center" />
  40.                       <ItemStyle HorizontalAlign="Center" />
  41.                       <ItemTemplate>
  42.                         <%#GetMBPStr(DataBinder.Eval(Container.DataItem,"MemberPrice").ToString())%>
  43.                         ¥
  44.                       </ItemTemplate>
  45.                     </asp:TemplateField>
  46.                     <asp:BoundField DataField="Num" HeaderText="数量">
  47.                       <ItemStyle HorizontalAlign="Center" />
  48.                       <HeaderStyle HorizontalAlign="Center" />
  49.                     </asp:BoundField>
  50.                     <asp:TemplateField HeaderText="小计">
  51.                       <HeaderStyle HorizontalAlign="Center" />
  52.                       <ItemStyle HorizontalAlign="Center" />
  53.                       <ItemTemplate>
  54.                         <%#GetSPStr(DataBinder.Eval(Container.DataItem, "SumPrice").ToString())%>
  55.                         ¥
  56.                       </ItemTemplate>
  57.                     </asp:TemplateField>
  58.                     <asp:CommandField ShowDeleteButton="True" />
  59.                     <asp:CommandField ShowEditButton="True" />
  60.                   </Columns>
  61.                 </asp:GridView>
  62.               </td>
  63.             </tr>
  64.             <tr align="left">
  65.               <td align="center"><asp:Label ID="lbLag" runat="server" Text="现购物车为空" Visible="False"></asp:Label></td>
  66.             </tr>
  67.             <tr align="left">
  68.               <td>合计: &nbsp; &nbsp;<asp:Label ID="lbSumPrice" runat="server" Text="Label"></asp:Label>¥</td>
  69.             </tr>
  70.             <tr align="left">
  71.               <td>商品数量:<asp:Label ID="lbSumNum" runat="server" Text="Label"></asp:Label></td>
  72.             </tr>
  73.             <tr>
  74.               <td align="center" style="height: 19px">
  75.                 <asp:LinkButton ID="lnkbtnClear" runat="server" OnClick="lnkbtnClear_Click">清空购物车</asp:LinkButton>
  76.                 <asp:LinkButton ID="lnkbtnContinue" runat="server" OnClick="lnkbtnContinue_Click">继续购物</asp:LinkButton>&nbsp;
  77.                 <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" Style="position: static">提交定单</asp:LinkButton></td>
  78.             </tr>
  79.           </table>
  80.         </td>
  81.       </tr>
  82.     </table>
  83.   </asp:Panel>
  84. </asp:Content>