温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:我的小书坊源码(三层实现)
当前文件:
MyBookShop/CartView.aspx,打开代码结构图
MyBookShop/CartView.aspx,打开代码结构图1<%@ Page Language="c#" Inherits="MyBookShop.Web.CartView" CodeFile="CartView.aspx.cs" %> 2
3
<%@ Register TagPrefix="MyBookShop" TagName="HeaderMenu" Src="UserControls/HeaderMenu.ascx" %> 4
<%@ Register TagPrefix="MyBookShop" TagName="UserCheck" Src="UserControls/UserCheck.ascx" %> 5
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 6
<html xmlns="http://www.w3.org/1999/xhtml"> 7
<head id="Head1" runat="server"> 8
<title>浏览购物篮</title> 9
<link href="Styles/style.css" rel="stylesheet" type="text/css" /> 10
</head> 11
<body> 12
<form id="Form1" method="post" runat="server"> 13
<table id="Table1" style="z-index: 101; left: 8px; width: 504px; position: absolute; 14
top: 8px; height: 136px" cellspacing="0" cellpadding="0" width="504" border="0"> 15
<tr> 16
<td align="center"> 17
<MyBookShop:HeaderMenu ID="headerMenu" runat="server"></MyBookShop:HeaderMenu> 18
<MyBookShop:UserCheck ID="userCheck1" runat="server"></MyBookShop:UserCheck> 19
</td> 20
</tr> 21
<tr> 22
<td> 23
>>购买图书>>我的购物篮</td> 24
</tr> 25
<tr> 26
<td valign="top" align="center"> 27
<asp:GridView ID="GV" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GV_RowCancelingEdit" 28
OnRowCommand="GV_RowCommand" OnRowDeleting="GV_RowDeleting" OnRowEditing="GV_RowEditing" 29
OnRowUpdating="GV_RowUpdating" Width="90%"> 30
<Columns> 31
<asp:BoundField DataField="CartId" ReadOnly="True" HeaderText="购物篮编号" /> 32
<asp:BoundField DataField="BookName" ReadOnly="True" HeaderText="图书名" /> 33
<asp:BoundField DataField="Amount" HeaderText="数量" /> 34
<asp:CommandField ShowEditButton="True" /> 35
<asp:CommandField ShowDeleteButton="True" /> 36
</Columns> 37
</asp:GridView> 38
</td> 39
</tr> 40
<tr> 41
<td align="right" style="background-color:aqua; height: 20px;"> 42
<asp:Button ID="ButtonBack" runat="server" Text="继续选购" Width="65px" OnClick="ButtonBack_Click"> 43
</asp:Button> 44
<asp:Button ID="ButtonBuy" runat="server" Text="去结算中心" Width="77px" OnClick="ButtonBuy_Click"> 45
</asp:Button></td> 46
</tr> 47
</table> 48
</form> 49
</body> 50
</html> 51



