Cart.aspx
资源名称:yjal.rar [点击查看]
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:5k
源码类别:
Email客户端
开发平台:
Visual C++
- <%@ Page Language="C#" MasterPageFile="~/AppMaster.master" AutoEventWireup="true"
- CodeFile="Cart.aspx.cs" Inherits="Cart" Title="查看购物车" %>
- <asp:Content ID="Content2" ContentPlaceHolderID="phMain" runat="Server">
- <asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="300px">
- 对不起,你没有<a href="Login.aspx">登录</a></asp:Panel>
- <br />
- <asp:Panel ID="panel2" runat="server" Visible="false">
- <table cellspacing="0" cellpadding="0" width="480" align="center" border="0">
- <tr style="font: 9pt; font-family: 宋体;">
- <th align="left" height="25" colspan="2">
- <asp:Label ID="lblTitleInfo" runat="server">购物车</asp:Label>
- </th>
- </tr>
- </table>
- <table cellspacing="1" cellpadding="1" width="480" align="center" border="0">
- <tr style="font: 9pt; font-family: 宋体;">
- <td>
- <table cellspacing="0" cellpadding="0" width="95%" align="center" border="0">
- <tr style="font: 9pt; font-family: 宋体;">
- <td align="left" style="height: 135px">
- <asp:GridView ID="gvShopCart" DataKeyNames="CartID" runat="server" AllowPaging="True"
- AutoGenerateColumns="False" PageSize="5" OnPageIndexChanging="gvShopCart_PageIndexChanging"
- OnRowCancelingEdit="gvShopCart_RowCancelingEdit" OnRowDeleting="gvShopCart_RowDeleting"
- OnRowEditing="gvShopCart_RowEditing" OnRowUpdating="gvShopCart_RowUpdating" Width="475px">
- <Columns>
- <asp:BoundField DataField="GoodsName" HeaderText="商品名称" ReadOnly="True">
- <ItemStyle HorizontalAlign="Center" />
- <HeaderStyle HorizontalAlign="Center" />
- </asp:BoundField>
- <asp:TemplateField HeaderText="市场价">
- <HeaderStyle HorizontalAlign="Center" />
- <ItemStyle HorizontalAlign="Center" />
- <ItemTemplate>
- <%#GetMKPStr(DataBinder.Eval(Container.DataItem,"MarketPrice").ToString())%>
- ¥
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="普通会员价">
- <HeaderStyle HorizontalAlign="Center" />
- <ItemStyle HorizontalAlign="Center" />
- <ItemTemplate>
- <%#GetMBPStr(DataBinder.Eval(Container.DataItem,"MemberPrice").ToString())%>
- ¥
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="Num" HeaderText="数量">
- <ItemStyle HorizontalAlign="Center" />
- <HeaderStyle HorizontalAlign="Center" />
- </asp:BoundField>
- <asp:TemplateField HeaderText="小计">
- <HeaderStyle HorizontalAlign="Center" />
- <ItemStyle HorizontalAlign="Center" />
- <ItemTemplate>
- <%#GetSPStr(DataBinder.Eval(Container.DataItem, "SumPrice").ToString())%>
- ¥
- </ItemTemplate>
- </asp:TemplateField>
- <asp:CommandField ShowDeleteButton="True" />
- <asp:CommandField ShowEditButton="True" />
- </Columns>
- </asp:GridView>
- </td>
- </tr>
- <tr align="left">
- <td align="center"><asp:Label ID="lbLag" runat="server" Text="现购物车为空" Visible="False"></asp:Label></td>
- </tr>
- <tr align="left">
- <td>合计: <asp:Label ID="lbSumPrice" runat="server" Text="Label"></asp:Label>¥</td>
- </tr>
- <tr align="left">
- <td>商品数量:<asp:Label ID="lbSumNum" runat="server" Text="Label"></asp:Label></td>
- </tr>
- <tr>
- <td align="center" style="height: 19px">
- <asp:LinkButton ID="lnkbtnClear" runat="server" OnClick="lnkbtnClear_Click">清空购物车</asp:LinkButton>
- <asp:LinkButton ID="lnkbtnContinue" runat="server" OnClick="lnkbtnContinue_Click">继续购物</asp:LinkButton>
- <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" Style="position: static">提交定单</asp:LinkButton></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </asp:Panel>
- </asp:Content>