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

📄 sto.aspx

📁 前台首页:users/index.aspx 后台首页:login.aspx 这是一个有关宠物的电子商务网站 注:后台的“售后服务” 和“数据统计”这两块由于时间原因暂时 没完成。由于技术问
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sto.aspx.cs" Inherits="sto" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
       <center>
         &nbsp;<table border="0" cellpadding="0" cellspacing="0" width="900";">
         <tr>
           <td align="center" style="height: 45px; width: 858px;"><img src="image/top.jpg" id="IMG1" onclick="return IMG1_onclick() " height="100"  alt="luolili" style="width: 866px"/>
             </td>
             </tr>
             </table>
             <table>
             <tr>
             <td style="height: 24px; width: 815px;">
             <a href="index.aspx"><font color=green><b>首页</b></font></a>&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Label ID="label2" runat="server"><a href="sto.aspx"><font color=green><b>购物车</b></font></a></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Label ID="label3" runat="server"><a href="shoucang.aspx"><font color=green><b>我的收藏夹</b></font></a></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Label ID="label4" runat="server"><a href="petnews.aspx"><font color=green><b>宠物新闻</b></font></a></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Label ID="label5" runat="server"><a href=index.aspx><font color=green><b>留言板</b></font></a></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Label ID="label6" runat="server"><a href=index.aspx><font color=green><b>关于我们</b></font></a></asp:Label>
           <asp:Label ID="label8" runat="server"><a href="../login.aspx"><font color=green><b>后台管理</b></font></a></asp:Label>
           </td>
         </tr>
    </table>
        </center>
        <center>
        <table>
        <tr>
        <td style="width: 49px; height: 25px" align="right">
            <asp:Image ID="Image1" runat="server" Height="40px" ImageUrl="image/car.jpg"
                Width="37px" /></td>
        <td style="width: 761px; height: 25px" align="left">
       <font size=4> 我的购物车</font>
        </td>
        </tr>
        </table>
        </center>
    <center>
        &nbsp;</center>
        <center>
        <asp:Label ID="Label1" runat="server" Width="423px"></asp:Label>&nbsp;
        </center>
        <center>
            &nbsp;</center>
        <center>
            <asp:Label ID="Label7" runat="server" Width="208px"></asp:Label>&nbsp;</center>
        <center>
            &nbsp;</center>
        <center>
            &nbsp;&nbsp;</center>
        <center>
            &nbsp;<ASP:DataGrid   id="ShoppingCartDlt"   runat="server"   Width="800px"   CellPadding="4"   Font-Size="8pt"   HeaderStyle-BackColor="#cecfd6"   
                  AutoGenerateColumns="False" ForeColor="#333333" GridLines="None" Height="210px">   
                  <Columns>   
                    <asp:TemplateColumn   HeaderText="删除">   
                      <ItemTemplate>   
                        <center>   
                          <asp:CheckBox   id="chkProductID"   runat="server"   />   
                        </center>   
                      </ItemTemplate>   
                    </asp:TemplateColumn>   
                    <asp:BoundColumn   DataField="id" HeaderText="ID"   />   
                    <asp:BoundColumn   DataField="petname"   HeaderText="商品名称"   />   
                    <asp:BoundColumn   DataField="petmoney"   HeaderText="单价"   />   
                    <asp:TemplateColumn   HeaderText="数量">   
                      <ItemTemplate>   
                        <asp:TextBox   id="CountTb"   runat="server"   Text='<%#DataBinder.Eval(Container.DataItem,"count")%>'>   
                        </asp:TextBox>   
                      </ItemTemplate>   
                    </asp:TemplateColumn>   
                    <asp:BoundColumn   DataField="TotalPrice"   HeaderText="小计(元)" />   
                  </Columns>   
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                <AlternatingItemStyle BackColor="White" />
                <ItemStyle BackColor="#FFFBD6" ForeColor="#333333" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                </ASP:DataGrid>&nbsp;    
                 <table   width="600"   border="0"   cellspacing="0"   cellpadding="0">   
            <tr>   
              <td style="height: 32px; width: 257px;"><asp:Button   id="update"   runat="server"   Text="更新我的购物车"     CssClass="button2" OnClick="update_Click"   />
                  <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="清空购物车 " /></td>   
              <td style="height: 32px; width: 130px;"><asp:Button   id="CheckOut"   runat="server"   Text="结算" OnClick="CheckOut_Click"   />&nbsp;&nbsp;
              <asp:Button   id="butt"   runat="server"   Text="继续购物" OnClick="butt_Click"></asp:Button></td>   
              <td   align="right" style="height: 32px; width: 93px;">
                  <br>   
                <asp:Label   id="label"   runat="server"   Width="100px"   Visible="True"   ForeColor="#FF8080"   Height="18px"></asp:Label>
                  &nbsp;&nbsp;&nbsp;&nbsp;
              </td> 
              <td>
                  <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="下订单" /></td>  
            </tr> 
            
          </table>
            &nbsp;&nbsp;&nbsp;</center>
   
        <center>
        </center>
        <center>
            &nbsp;</center>
        </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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