📄 shopcartproduct.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ShopCartProduct.aspx.cs" Inherits="ShopCartProduct" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" cellpadding="0" cellspacing="0" style="width: 564px; height: 157px">
<tr>
<td align="center">
ShopCart</td>
</tr>
<tr>
<td>
<asp:GridView ID="GridViewshopcart" runat="server" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow"
BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="ProductID"
ForeColor="Black" GridLines="None" Height="128px"
OnRowDeleting="GridViewshopcart_RowDeleting" Width="561px" OnRowDataBound="GridViewshopcart_RowDataBound" ShowFooter="True">
<FooterStyle BackColor="Tan" />
<Columns>
<asp:BoundField DataField="ProductID" HeaderText="ProductID" />
<asp:BoundField DataField="ProductName" HeaderText="ProductName" />
<asp:BoundField DataField="UnitCost" DataFormatString="{0:c}" HeaderText="UnitCost"
HtmlEncode="False" />
<asp:TemplateField HeaderText="Quantity">
<ItemTemplate>
<img src="images/1x1.gif" style="width: 54px; height: 15px" />
<asp:TextBox ID="txtQuantity" runat="server" Text='<%# Eval("Quantity") %>' Width="53px"></asp:TextBox>
<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtQuantity"
ErrorMessage="输入格式不正确!" MaximumValue="1000000" MinimumValue="1" Type="Integer"
Width="118px"></asp:RangeValidator>
</ItemTemplate>
<FooterTemplate>
<asp:Label ID="TotalLabel" runat="server" Text="Label" Width="183px"></asp:Label>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="删 除">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="delete" Width="64px">删 除</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:GridView>
</td>
</tr>
<tr>
<td style="height: 19px;" align="center">
<asp:Label ID="Label1" runat="server" Text="Your Cart does not contain any Item!"
Width="315px"></asp:Label></td>
</tr>
<tr>
<td align="left">
<img src="images/1x1.gif" style="width: 1px" />
<img src="images/1x1.gif" style="width: 46px; height: 16px" />
<asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" Text="Update Cart" />
<img src="images/1x1.gif" style="width: 47px; height: 12px" />
<asp:Button ID="Button2" runat="server" Text="Button" /></td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -