asp.net 实现购物车详细代码 -
时间:2010-09-04 来源:蔚蓝的大海
<%@ Page language="c#" Codebehind="shoppingcart.aspx.cs" AutoEventWireup="false" Inherits="myshop.shoppingcart" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML> <HEAD>
<title>shoppingcart
</title>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312"> <LINK href="mycss.css" type="text/css" rel="stylesheet">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD>
<body> <center>
<form id="Form1" runat="server"> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td>
<asp:DataGrid id="ShoppingCartDlt" runat="server" Width="500" BackColor="white" BorderColor="black" ShowFooter="false" CellPadding="3" CellSpacing="0" Font-Name="Verdana" Font-Size="8pt" HeaderStyle-BackColor="#cecfd6" AutoGenerateColumns="false" MaintainState="true"> <Columns>
<asp:TemplateColumn HeaderText="删除">
<ItemTemplate> <center>
<asp:CheckBox id="chkProductID" runat="server" /> </center>
</ItemTemplate> </asp:TemplateColumn>
<asp:BoundColumn DataField="ProdID" HeaderText="ID" />
<asp:BoundColumn DataField="ProName" HeaderText="商品名称" />
<asp:BoundColumn DataField="UnitPrice" HeaderText="单价" />
<asp:TemplateColumn HeaderText="数量">
<ItemTemplate>
<asp:TextBox id="CountTb" runat="server" Text='<%#DataBinder.Eval( Container.DataItem,"ProdCount" )%>'> </asp:TextBox>
</ItemTemplate> </asp:TemplateColumn>
<asp:BoundColumn DataField="TotalPrice" HeaderText="小计( 元 )" /> </Columns> </asp:DataGrid></td> </tr> </table>
<table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td>
<asp:Button id="update" runat="server" Text="更新我的购物车" CssClass="button2" /></td> <td>
<asp:Button id="CheckOut" runat="server" Text="结算" CssClass="button5" />
<input type="button" name="close2" value="继续购物" onClick="window.close( );
return false;
" class="button2"></td> <td align="right">
<asp:Label id="label" runat="server" Width="100px" Visible="True" ForeColor="#FF8080" Height="18px"></asp:Label></td> </tr> </table>
</form> </center>
</body></HTML>=======================================================================================以上为HTML页面部分
==========================================================================================
using System;
using System.Collections;
using System.ComponentModel;
using System.Web.SessionState;
scrap copper per poundfibre optic cable pictureesata vs 1394performance testing load testingrgb to av cablesmallville season 8 wikielectronics storeswii speed testdiscount tonerintel graphics media accelerator x3100 wowmonitor coaxial input360 vga resolutionsairtel dial up connectionvideo card coaxial outputzoom v92 modem driversbest ethernet cardsaudio video connectionsdvi mini display converterpcb mount connectorssims 2 communityxbox controller pcethernet external modemplaystation 2 vga cablehdtv channels dish networksas host adapter6 foot extension cordusb zu pcmciaelectrica wiringsony lcd tvusb ethernet adapter ubuntuhtc 100 hdmi cablesterling silver wireinstall graphics card driversrf adapter for tvpartition recovery freeware32 lcd hdtv dealspocket pc bluetooth keyboardpink pearl dangle earringsoptical digital audio out rcablackjack 2 activesync problemsvirtual serial port monitorups extension cordasus videom22759 11 26difference between firmware driversdell axim x3 wireless cardhome theater audio reviewsreviews of component video cablesserial ata power supplyame group usb
Replica lv Hangbags
Replica Hangbags
Hangbags
replica handbags
replica handbags
replica handbags
replica handbags
replica handbags
bags
handbags
handbags
replica handbags
replica handbags
replica handbagsusb cable
usb cable
usb cable
usb cable
usb cable
usb flash drives
usb flash drives
usb flash drives
usb flash drives usb flash drives usb flash drives usb flash drives usb flash drives usb flash drives 相关阅读 更多 +