📄 car.aspx
字号:
<%@ Page language="c#" Codebehind="Car.aspx.cs" AutoEventWireup="True" Inherits="web.customer.Car" %>
<%@ Register TagPrefix="uc1" TagName="head" Src="../Index/head.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>我的购物车</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body style="MARGIN: 0px" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<uc1:head id="Head1" runat="server"></uc1:head>
<div id="car" align="center">
<table cellSpacing="0" cellPadding="0" width="760" align="center" border="0">
<tr>
<td colSpan="6"><FONT color="#ff0000">我的购物车</FONT></td>
</tr>
<tr bgColor="#f1f1f1">
<td align="center" width="200">商品名称</td>
<td align="center" width="100">单价</td>
<td align="center" width="100">购买数量</td>
<td align="center" width="190">修改数量</td>
<td align="center" width="100">总价</td>
<td align="center" width="70">删除</td>
</tr>
<tr>
<td bgColor="#cccccc" colSpan="6" height="1"></td>
</tr>
<tr>
<td width="760" colSpan="6"><asp:panel id="Panel1" Runat="server" Visible="True" Width="760">
<asp:DataGrid id="DataGrid1" runat="server" Width="760px" AutoGenerateColumns="False" ShowHeader="False">
<Columns>
<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="GoodsId" DataNavigateUrlFormatString="../Products/ProductDetail.aspx?GoodsId={0}"
DataTextField="GoodsName" HeaderText="商品名称">
<ItemStyle Width="200px"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="Price" HeaderText="单价">
<ItemStyle Width="100px"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Number" HeaderText="购买数量">
<ItemStyle Width="100px"></ItemStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="修改数量">
<ItemStyle Width="190px"></ItemStyle>
<ItemTemplate>
<asp:TextBox id="TextBox1" runat="server" Width="96px"></asp:TextBox><FONT face="宋体"> </FONT>
<asp:LinkButton id="LinkButton2" runat="server" CommandName="Update">修改</asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<FONT face="宋体"></FONT>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="TotalPrice" HeaderText="总价">
<ItemStyle Width="100px"></ItemStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="删除">
<ItemStyle Width="70px"></ItemStyle>
<ItemTemplate>
<asp:LinkButton id="LinkButton1" runat="server" CommandName="Delete">删除</asp:LinkButton>
<asp:Label id=id runat="server" Visible="false" Text='<%#DataBinder.Eval(Container.DataItem,"CarId")%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</asp:panel><asp:panel id="Panel2" Runat="server" Visible="False" Width="760">
<TABLE width="760" border="0">
<TR>
<TD align="center" width="760"><FONT color="#ff0000">你还没有购买商品</FONT></TD>
</TR>
</TABLE>
</asp:panel></td>
</tr>
</table>
</div>
<div id="detail" align="center">
<table style="PADDING-TOP: 5px" cellSpacing="0" cellPadding="0" width="760" border="0">
<tr>
<td align="right" width="500">总计:</td>
<td id="totalPrice" width="200" runat="server">0</td>
<td width="60"><FONT face="宋体"></FONT></td>
</tr>
<tr>
<td align="center" width="760" colSpan="3"><asp:imagebutton id="ImageButton3" runat="server" ImageUrl="../Image/Products/cart01.gif"></asp:imagebutton><FONT face="宋体"></FONT><asp:imagebutton id="ImageButton4" runat="server" ImageUrl="../Image/Products/cart02.gif"></asp:imagebutton><asp:imagebutton id="ImageButton5" runat="server" ImageUrl="../Image/Products/cart04.gif"></asp:imagebutton></td>
</tr>
</table>
</div>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -