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

📄 shopingcar.aspx

📁 一个简单的网上书店
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="shopingcar.aspx.cs" Inherits="shopingcar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        <link href="css/style_2.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 7px; MARGIN: auto; WIDTH: 982px; PADDING-TOP: 10px; BORDER-BOTTOM: #f27b21 3px solid; HEIGHT: 43px">
    <a href="#" target="_blank"><img  src="image/login_top.JPG" style="width: 104px; height: 53px;FLOAT: left" alt="不显示" /></a>
    <div style="FLOAT: right; COLOR: #9b9b9b; PADDING-TOP: 28px">
        <b>[我的购物车]│</b>
        <a href="index.aspx" target="_blank">返回首页</a><b> |</b>
        <a href="#" target="_blank">帮助</a>
    </div>
</div>
    <form id="form1" runat="server">
        <div id="div_sl" runat="server" style="z-index: 103; left: 385px; width: 233px; position: absolute; top: 134px;
        height: 102px; BORDER-BOTTOM: #cfcfcf 3px solid;background-color:#f27b21;">
        <ul style="LIST-STYLE-TYPE: none; margin:10px 5px 10px 30px;">
            <li>
                您已经购买<asp:Label ID="Label3" runat="server" Text=""></asp:Label><asp:Label ID="Label4"
                    runat="server" Text=""></asp:Label>本</li>
            <li><hr style="width: 100%; color: #cfcfcf; height: 1px" /></li>
            <li>请输入您确定购买的数量:</li>
            <li><span style="margin:10px;"><asp:TextBox ID="txtshuliang" runat="server" Width="83px" Height="16px"></asp:TextBox></span>
                <span style="margin:0px 0px 0px 10px;">单位:本</span>
            </li>
            <li><hr style="width: 100%; color: #cfcfcf; height: 1px" /></li>
            <li>
                <asp:Button ID="btnaddok" runat="server" Text="确定" Width="58px" OnClick="btnaddok_Click"  />
                <asp:Button ID="btnaddno" runat="server" Text="取消" Width="58px" OnClick="btnaddno_Click"  /></li>
        </ul>
    </div>
    <div>
      <div id="div_bg" style="z-index: 101; left: 154px; width: 650px; position: absolute;
        top: 97px; height: 207px">
        <table style="width: 670px">
            <tr class="category">
                <td style="width: 670px;" align="left" valign="middle">&nbsp; &nbsp; 尊敬的
                  <span style="color:Red; font-family: 宋体; font-size:12px;"><asp:Label ID="Label1" runat="server"></asp:Label></span>.您好!以下为您本次购买的商品,希望您购物愉快!
                </td>
            </tr>
            <tr>
                <td style="width: 670px; height: 50px;" align="center" valign="middle">
                    <center>
                   <table style="width: 650px;">
                    <tr class="category">
                        <td colspan="5"></td>
                    </tr>
                          <tr class="row">  
                                        <td style="width: 50px; height: 16px; background-color: #99ccff;">
                                            编号
                                        </td>            
                                        <td style="width: 150px; height: 16px; background-color: #99ccff;">
                                            购买书籍
                                        </td>
                                        <td style="width: 100px; height: 16px; background-color: #99ccff;">
                                            数量:
                                        </td>
                                        <td style="width: 100px; height: 16px; background-color: #99ccff;">
                                            单价:
                                        </td>
                                        <td style="width: 100px; height: 16px; background-color: #99ccff;">
                                            总价
                                        </td>
                                         <td style="width: 150px; height: 16px; background-color: #99ccff;">
                                            操作
                                        </td>
                                    </tr>
                              <tr class="category">
                                <td colspan="6">
                                <asp:GridView ID="GridView1" runat="server" Width="650px" AutoGenerateColumns="False"  ShowHeader="False" DataKeyNames="number" >
                                    <Columns>
                                        <asp:BoundField  DataField="number" ReadOnly="True">
                                            <ItemStyle Width="50px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Title" ReadOnly="True">
                                            <ItemStyle Width="150px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Quantity" >
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField  DataField="unitPrice" ReadOnly="True">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField  DataField="Price" ReadOnly="True">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:TemplateField>
                                            <ItemStyle Width="150px" />
                                            <ItemTemplate>
                                                <asp:Button ID="Button2" runat="server" CommandArgument='<%#Eval("number")%>' CommandName="SL"
                                                    OnCommand="Button2_Command" Text="修 改" />
                                                <asp:Button ID="Button3" runat="server" Text="删 除" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                </td>
                              </tr>
                    </table>
                    </center>
                    <asp:ImageButton ID="ImageButton2" runat="server" Height="18px" ImageUrl="~/image/_prevpg.gif"
                         Width="57px" />
                    <asp:ImageButton ID="ImageButton3" runat="server" Height="18px" ImageUrl="~/image/_nextpg.gif"
                         Width="57px" />
                    &nbsp; &nbsp; &nbsp; 当前页:<asp:Label ID="lblcruutenPager" runat="server" Text="1"></asp:Label>&nbsp;
                    共<asp:Label ID="lblcPagers" runat="server" Text="0"></asp:Label>
                    页 &nbsp;&nbsp;
                            </td>
                            </tr>
                            <tr class="category">
                                <td align="left" style="width: 670px"> 
                                   您本次累积消费共计:<span style="color:Red; font-size:12px;"><asp:Label ID="Label2" runat="server"
                                       Width="80px"></asp:Label></span>
                                    <span style="color:Purple; margin:0px 0px 0px 350px"><asp:Button ID="Button1" runat="server" Text="结 算" OnClick="Button1_Click" /></span><span style=" margin:0px 0px 0px 30px"><a href="index.aspx">继续逛逛</a></span>
                                </td>
                            </tr>
                           <tr class="category">
                            <td  colspan="2" align="center">
                                &nbsp; &nbsp;
                            </td>
                         </tr>
            
            </table>
        </div> 
    
    
    
            <div style="z-index: 102; left: 27px; width: 959px; position: absolute; top: 426px;
            height: 90px">
            <center>
                <hr style="width: 972px; color: #cfcfcf; height: 1px" />
                <div class="b_left">
                </div>
                <div class="publish_bottom_message2">
                    <div class="copyright">
                        Copyright (C) 第三波网 2004-2008, All Rights Reserved</div>
                    <div class="validate">
                        <img alt="X" src="image/validate.gif" />
                        <p>
                            <a href="#" target="_blank"><span style="color: #0000ff; text-decoration: underline">
                                京ICP证041189号</span></a></p>
                    </div>
                </div>
            </center>
        </div>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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