⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shoppingcart.aspx

📁 数据库设计2.页面的设计与开发3.小结第8章在线考试系统 161 实例分析 161 1. 系统设计2.系统功能预览知识要点 167 制作步骤 168 1 ... 利用简单的HTML代码与脚本 融合而成
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="ShoppingCart.aspx.cs" AutoEventWireup="false" Inherits="SimplexShop.ShoppingCart" %>
<!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">
		<META content="网上服装店,网上开店,网上开服装店,网上建店,网上购物系统,网上开店系统,自助开店系统" name="description">
		<META content="网上服装店,网上开店,网上开服装店,网上建店,网上购物系统,网上开店系统,自助开店系统" name="keywords">
		<LINK href="Css/css.css" type="text/css" rel="stylesheet">
		<LINK href="images/shoppingCart/css.css" type="text/css" rel="stylesheet">
		<script language="javascript"> 
var win = null; 
function NewWindow(mypage,myname,w,h,scroll){ 
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 
settings = 
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=1,resizable' 
win = window.open(mypage,myname,settings) 
} 
		</script>
	</HEAD>
	<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<TABLE class="dotX" height="475" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TBODY>
					<TR>
						<TD vAlign="top" height="275">
							<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
								<TBODY>
									<TR>
										<TD bgColor="#91a41c"><IMG height="5" src="" width="1"></TD>
									</TR>
								</TBODY>
							</TABLE>
							<TABLE class="dotX" cellSpacing="0" cellPadding="0" width="100%" bgColor="#bcd524" border="0">
								<TBODY>
									<TR>
										<TD align="center">&nbsp;</TD>
									</TR>
									<TR>
										<TD bgColor="#ffffff" height="2"><IMG height="1" src="" width="80"></TD>
									</TR>
								</TBODY>
							</TABLE>
							<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
								<TBODY>
									<TR>
										<TD>
											<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
												<TBODY>
													<TR>
														<TD align="center">
															<TABLE class="p9orange" cellSpacing="1" cellPadding="0" width="100%" border="0">
																<TBODY>
																	<TR>
																		<TD vAlign="top">
																			<TABLE class="border-b" cellSpacing="0" cellPadding="0" width="100%" border="0">
																				<TR class="p9orange" align="center">
																					<TD width="10%" height="19">图片</TD>
																					<TD width="30%" height="19">商品名称</TD>
																					<TD width="6%" height="19">型号</TD>
																					<TD width="6%" height="19">颜色</TD>
																					<TD width="12%" height="19">市场价格</TD>
																					<TD width="12%">
																						<asp:Literal id="ltrPrice" runat="server" Text="优惠价格"></asp:Literal></TD>
																					<TD width="4%" height="19">数量</TD>
																					<TD width="16%">小计</TD>
																					<TD width="4%" height="19">删除</TD>
																				</TR>
																			</TABLE>
																		</TD>
																	</TR>
																</TBODY>
															</TABLE>
															<TABLE class="yellowborder" cellSpacing="0" cellPadding="0" width="100%" align="center"
																border="0">
																<TBODY>
																	<TR>
																		<TD vAlign="top" height="30"><asp:datalist id="dlShoppingCart" Width="100%" RepeatColumns="1" Runat="server" DataKeyField="ProductID">
																				<ItemTemplate>
																					<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
																						<TR align="center">
																							<TD class="p9v" width="10%" height="38">
																								<INPUT type="hidden" runat="server" ID="lblProductID" NAME="lblProductID" value='<%# DataBinder.Eval(Container.DataItem, "ProductID") %>'>
																								<IMG height="90" width="72" src='Upload/Products/<%# DataBinder.Eval(Container.DataItem, "ThumbnailImg") %>' border="0">
																							</TD>
																							<TD class="p9v" width="30%" height="38"><A onclick="NewWindow(this.href,'opwd','760','590','no','center');return false" onfocus="this.blur()"  href='Detail.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>'><%# DataBinder.Eval(Container.DataItem, "ProductName") %></a></TD>
																							<TD class="p9v" width="6%" height="38"><%# GetStyle(DataBinder.Eval(Container.DataItem, "StyleID").ToString()) %><INPUT type="hidden" runat="server" ID="hiStyleID" NAME="hiStyleID" value='<%# DataBinder.Eval(Container.DataItem, "StyleID") %>'></TD>
																							<TD class="p9v" width="6%" height="38"><%# GetColor(DataBinder.Eval(Container.DataItem, "ColorID").ToString()) %><INPUT type="hidden" runat="server" ID="hiColorID" NAME="hiColorID" value='<%# DataBinder.Eval(Container.DataItem, "ColorID") %>'></TD>
																							<TD class="p9v" width="12%" height="38"><%# DataBinder.Eval(Container.DataItem, "MarketPrice","{0:f0}") %></TD>
																							<TD class="p14red" width="12%" height="38"><%# DataBinder.Eval(Container.DataItem, "Price","{0:f0}") %></TD>
																							<TD width="4%">
																								<asp:TextBox ID="txtQ" Runat="server" CssClass="inputstyle" Width="36" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>'>
																								</asp:TextBox></TD>
																							<TD class="p14red" width="16%" height="38"><%# DataBinder.Eval(Container.DataItem, "ExtendedAmount","{0:f0}") %></TD>
																							<TD width="4%" height="38"><A href='DeleteShoppintCartItem.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>&StyleID=<%# DataBinder.Eval(Container.DataItem, "StyleID") %>&ColorID=<%# DataBinder.Eval(Container.DataItem, "ColorID") %>&Url=ShoppingCart.aspx'><IMG height="16" src="images/shoppingCart/b-delete.gif" width="16" border="0"></A></TD>
																						</TR>
																					</TABLE>
																				</ItemTemplate>
																			</asp:datalist>
																			<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
																				<TBODY>
																					<TR>
																						<TD background="images/shoppingCart/dot.gif"><IMG height="1" src="images/shoppingCart/spacer.gif" width="70"></TD>
																					</TR>
																				</TBODY>
																			</TABLE>
																		</TD>
																	</TR>
																	<TR>
																		<TD class="p9black" vAlign="middle" align="right" height="30">合计:<B><FONT class="p9rednothrough"><asp:label id="lbTotal" Runat="server"></asp:label></FONT></B>元
																		</TD>
																	</TR>
																</TBODY>
															</TABLE>
															<TABLE cellSpacing="0" cellPadding="2" align="right" border="0">
																<TBODY>
																	<TR>
																		<TD><asp:imagebutton id="btnQ" runat="server" ImageUrl="images/shoppingCart/cart_q.gif"></asp:imagebutton></TD>
																		<TD><asp:imagebutton id="btnUpdate" runat="server" ImageUrl="images/shoppingCart/cart_ch.gif"></asp:imagebutton></TD>
																		<TD><A href="javascript:window.close()"><IMG height="23" src="images/shoppingCart/cart_c.gif" width="87" border="0"></A></TD>
																		<TD align="right"><asp:imagebutton id="btnCheckOut" runat="server" ImageUrl="images/shoppingCart/cartnext.gif"></asp:imagebutton></TD>
																	</TR>
																</TBODY>
															</TABLE>
														</TD>
													</TR>
												</TBODY>
											</TABLE>
											<asp:textbox id="txtHidden" runat="server" Visible="False">0</asp:textbox></TD>
									</TR>
								</TBODY>
							</TABLE>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TBODY>
					<TR>
						<TD bgColor="#91a41c"><IMG height="5" src="" width="1"></TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE cellSpacing="0" cellPadding="0" width="100%" bgColor="#bcd524" border="0">
				<TBODY>
					<TR>
						<TD align="center">&nbsp;</TD>
					</TR>
					<TR>
						<TD bgColor="#ffffff" height="2"><IMG height="1" src="" width="80"></TD>
					</TR>
				</TBODY>
			</TABLE>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -