ShoppingCart.aspx
资源名称:SHOPASP.rar [点击查看]
上传用户:xiecaij
上传日期:2015-02-08
资源大小:2016k
文件大小:5k
源码类别:
百货/超市行业
开发平台:
ASP/ASPX
- <%@ Page language="c#" Codebehind="ShoppingCart.aspx.cs" AutoEventWireup="false" Inherits="eshop.ShoppingCart" %>
- <%@ Register TagPrefix="eshop" TagName="CategoryList" Src="UserControl/CategoryList.ascx" %>
- <%@ Register TagPrefix="eshop" TagName="HeaderMenu" Src="UserControl/HeaderMenu.ascx" %>
- <%@ Register TagPrefix="eshop" TagName="UserMenu" Src="UserControl/UserMenu.ascx" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>EShop</title>
- <LINK href="Styles.css" type="text/css" rel="stylesheet">
- </HEAD>
- <body>
- <table cellSpacing="0" cellPadding="0" width="100%" border="0">
- <tr>
- <td colSpan="2"><eshop:headermenu id="Header1" runat="server"></eshop:headermenu></td>
- </tr>
- <tr>
- <td valign="top" width="145">
- <span id="LogOutArea" runat="server">
- <eshop:CategoryList id="Menu1" runat="server" />
- </span>
- <span id="LogInArea" runat="server">
- <eshop:UserMenu id="Menu2" runat="server" />
- </span>
- <img height="1" src="images/space.gif" width="145">
- </td>
- <td align="left" valign="top" width="700">
- <table align="center" width="100%" border="0">
- <TBODY>
- <tr valign="bottom">
- <form id="Form1" method="post" runat="server">
- <td align="center">
- <font color="red">
- <asp:Label id="MyError" class="ErrorText" EnableViewState="false" runat="Server" />
- </font>
- <asp:panel id="DetailsPanel" runat="server">
- <IMG height="1" src="images/1x1.gif" width="50" align="left">
- <TABLE height="100%" cellSpacing="0" cellPadding="0" width="550" border="0">
- <TR vAlign="top">
- <TD width="550">
- <asp:DataGrid id="MyList" runat="server" AutoGenerateColumns="false" DataKeyField="Quantity" AlternatingItemStyle-CssClass="CartListItemAlt"
- ItemStyle-CssClass="CartListItem" FooterStyle-CssClass="CartListFooter" HeaderStyle-CssClass="CartListHead"
- ShowFooter="true" Font-Size="8pt" Font-Name="Verdana" cellspacing="0" cellpadding="4" GridLines="Vertical"
- BorderColor="black" Width="90%">
- <AlternatingItemStyle CssClass="CartListItemAlt"></AlternatingItemStyle>
- <ItemStyle CssClass="CartListItem"></ItemStyle>
- <HeaderStyle CssClass="CartListHead"></HeaderStyle>
- <FooterStyle CssClass="CartListFooter"></FooterStyle>
- <Columns>
- <asp:TemplateColumn HeaderText="商品编号">
- <ItemTemplate>
- <asp:Label id="bookID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "productID") %>' />
- </ItemTemplate>
- </asp:TemplateColumn>
- <asp:HyperLinkColumn DataNavigateUrlField="productID" DataNavigateUrlFormatString="ProductInfo.aspx?productID={0}"
- DataTextField="productName" HeaderText="商品名称">
- <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
- </asp:HyperLinkColumn>
- <asp:BoundColumn DataField="ProductPrice" HeaderText="价格" DataFormatString="{0:c}"></asp:BoundColumn>
- <asp:TemplateColumn HeaderText="数量">
- <ItemTemplate>
- <asp:TextBox id=Quantity runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>' width="40px" MaxLength="3" Columns="4">
- </asp:TextBox>
- </ItemTemplate>
- </asp:TemplateColumn>
- <asp:BoundColumn DataField="ExtendedAmount" HeaderText="小计" DataFormatString="{0:c}"></asp:BoundColumn>
- <asp:TemplateColumn HeaderText="删除">
- <ItemTemplate>
- <center>
- <asp:CheckBox id="Remove" runat="server" />
- </center>
- </ItemTemplate>
- </asp:TemplateColumn>
- </Columns>
- </asp:DataGrid><SPAN class="NormalBold">总计:
- </SPAN>
- <asp:Label class="NormalBold" id="lblTotal" runat="server" EnableViewState="false"></asp:Label><BR>
- <BR>
- <asp:button id="UpdateBtn" runat="server" Text="更新购物车"></asp:button><IMG height="1" src="Images/1x1.gif" width="15">
- <asp:button id="CheckoutBtn" runat="server" Width="96px" Text="结算"></asp:button><BR>
- </TD>
- </TR>
- </TABLE>
- </asp:panel>
- </td>
- </form>
- </tr>
- </TBODY>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </HTML>