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

📄 adminproduct.aspx

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

<!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="850";">
         <tr>
           <td align="center" style="height: 45px; width: 849px;"><img src="users/image/top.jpg" id="IMG1" onclick="return IMG1_onclick() " height="100"  alt="luolili" style="width: 823px"/>
             </td>
             </tr>
             </table>
             <table>
             <tr>
             <td style="height: 24px; width: 826px;">
     
             <a href=admin.aspx><font size=4><i>后台管理首页</i></font></a> 
         <a href=adminuser.aspx><font size=4><i>用户管理</i></font></a>
         <a href=adminproduct.aspx><font size=4><i>产品管理</i></font></a>
         <a href=order.aspx><font size=4><i>订单管理</i></font></a>
        <a href=service.aspx><font size=4><i>售后服务</i></font></a>
         <a href=admindata.aspx><font size=4><i>数据统计</i></font></a>
         <a href=news.aspx><font size=4><i>新闻管理</i></font></a>
           </td>
         </tr>
    </table>
  
            <table style="width: 530px">
         <tr>
         <td style="height: 21px">
             &nbsp; &nbsp; &nbsp; &nbsp;您当前位置:<a href=admin.aspx>后台管理首页</a> >><a href=adminproduct.aspx>产品管理</a>
         </td>
         </tr>
         </table> </center>
    <center>
   <h1>最新商品列表</h1>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            DataKeyNames="id" DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333" GridLines="None">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="id" HeaderText="编号" InsertVisible="False" ReadOnly="True"
                    SortExpression="id" />
                <asp:BoundField DataField="num" HeaderText="数量" SortExpression="num" />
                <asp:BoundField DataField="petname" HeaderText="宠物名称" SortExpression="petname" />
                <asp:BoundField DataField="petmoney" HeaderText="宠物价格" SortExpression="petmoney" />
                <asp:BoundField DataField="petlocal" HeaderText="产地" SortExpression="petlocal" />
                <asp:BoundField DataField="date" HeaderText="日期" SortExpression="date" />
                <asp:BoundField DataField="aboutpet" HeaderText="详细信息" SortExpression="aboutpet" />
                <asp:BoundField DataField="view" HeaderText="评论" SortExpression="view" />
            </Columns>
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:EbusinessConnectionString %>"
            DeleteCommand="DELETE FROM [product_info] WHERE [id] = @id" InsertCommand="INSERT INTO [product_info] ([num], [petname], [petmoney], [petlocal], [date], [aboutpet], [view]) VALUES (@num, @petname, @petmoney, @petlocal, @date, @aboutpet, @view)"
            SelectCommand="SELECT [id], [num], [petname], [petmoney], [petlocal], [date], [aboutpet], [view] FROM [product_info]"
            UpdateCommand="UPDATE [product_info] SET [num] = @num, [petname] = @petname, [petmoney] = @petmoney, [petlocal] = @petlocal, [date] = @date, [aboutpet] = @aboutpet, [view] = @view WHERE [id] = @id">
            <DeleteParameters>
                <asp:Parameter Name="id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="num" Type="Int32" />
                <asp:Parameter Name="petname" Type="String" />
                <asp:Parameter Name="petmoney" Type="Decimal" />
                <asp:Parameter Name="petlocal" Type="String" />
                <asp:Parameter Name="date" Type="DateTime" />
                <asp:Parameter Name="aboutpet" Type="String" />
                <asp:Parameter Name="view" Type="String" />
                <asp:Parameter Name="id" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="num" Type="Int32" />
                <asp:Parameter Name="petname" Type="String" />
                <asp:Parameter Name="petmoney" Type="Decimal" />
                <asp:Parameter Name="petlocal" Type="String" />
                <asp:Parameter Name="date" Type="DateTime" />
                <asp:Parameter Name="aboutpet" Type="String" />
                <asp:Parameter Name="view" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>
          <a href=addproduct.aspx>添加新宠物</a>
    </center>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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