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

📄 default.aspx

📁 通过微软的最新技术ASP.NET2.0开发一个类似BtoC、CtoC的企业产品信息发布系统。 整体设计思想与规划: 用Firework设计图形
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="admin_Default" %>

<%@ Register Src="../Top.ascx" TagName="Top" TagPrefix="uc1" %>
<%@ Register Src="../Foot.ascx" TagName="Foot" TagPrefix="uc2" %>

<!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>E商.NET企业产品展示系统-后台管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <br />
      
        <asp:Label ID="Label1" runat="server" Text="一级分类管理"></asp:Label>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            DataKeyNames="Catalogid" DataSourceID="Yellowpage" GridLines="None">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="Catalogid" HeaderText="分类编号" InsertVisible="False" ReadOnly="True"
                    SortExpression="Catalogid" />
                <asp:BoundField DataField="CatalogName" HeaderText="分类名称" SortExpression="CatalogName" />
            </Columns>
        </asp:GridView>
        <asp:AccessDataSource ID="Yellowpage" runat="server" DataFile="~/App_Data/company.mdb"
            DeleteCommand="DELETE FROM [Catalogs] WHERE [Catalogid] = ?" InsertCommand="INSERT INTO [Catalogs] ([Catalogid], [CatalogName]) VALUES (?, ?)"
            SelectCommand="SELECT * FROM [Catalogs]" UpdateCommand="UPDATE [Catalogs] SET [CatalogName] = ? WHERE [Catalogid] = ?">
            <DeleteParameters>
                <asp:Parameter Name="Catalogid" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="CatalogName" Type="String" />
                <asp:Parameter Name="Catalogid" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="Catalogid" Type="Int32" />
                <asp:Parameter Name="CatalogName" Type="String" />
            </InsertParameters>
        </asp:AccessDataSource>
        <br />
        <br />
        &nbsp;&nbsp;<br />
        &nbsp;<asp:Label ID="Label2" runat="server" Text="二级分类管理"></asp:Label>
        <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            DataKeyNames="SubCatalogid" DataSourceID="Yellowpage1" GridLines="None">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="SubCatalogid" HeaderText="二级分类编号" InsertVisible="False"
                    ReadOnly="True" SortExpression="SubCatalogid" />
                <asp:BoundField DataField="SubCatalogName" HeaderText="二级分类名称" SortExpression="SubCatalogName" />
                <asp:BoundField DataField="Catalogid" HeaderText="所属一级分类编号" SortExpression="Catalogid" />
            </Columns>
        </asp:GridView>
        <asp:AccessDataSource ID="Yellowpage1" runat="server" DataFile="~/App_Data/company.mdb"
            DeleteCommand="DELETE FROM [SubCatalogs] WHERE [SubCatalogid] = ?" InsertCommand="INSERT INTO [SubCatalogs] ([SubCatalogid], [SubCatalogName], [Catalogid]) VALUES (?, ?, ?)"
            SelectCommand="SELECT * FROM [SubCatalogs]" UpdateCommand="UPDATE [SubCatalogs] SET [SubCatalogName] = ?, [Catalogid] = ? WHERE [SubCatalogid] = ?">
            <DeleteParameters>
                <asp:Parameter Name="SubCatalogid" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="SubCatalogName" Type="String" />
                <asp:Parameter Name="Catalogid" Type="Int32" />
                <asp:Parameter Name="SubCatalogid" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="SubCatalogid" Type="Int32" />
                <asp:Parameter Name="SubCatalogName" Type="String" />
                <asp:Parameter Name="Catalogid" Type="Int32" />
            </InsertParameters>
        </asp:AccessDataSource>
        <br />
        &nbsp;<asp:Label ID="Label3" runat="server" Text="企业用户管理"></asp:Label><br />
        <asp:DataGrid ID="DataGrid1" runat="server" DataKeyField="cid" AllowPaging="True" AutoGenerateColumns="False" GridLines="None" OnDeleteCommand="DataGrid1_DeleteCommand" OnPageIndexChanged="DataGrid1_PageIndexChanged" PageSize="12" Width="413px">
            <PagerStyle Mode="NumericPages" />
            <Columns>
                <asp:BoundColumn DataField="c1" HeaderText="用户名"></asp:BoundColumn>
                <asp:BoundColumn DataField="c2" HeaderText="密码"></asp:BoundColumn>
                <asp:BoundColumn DataField="c4" HeaderText="公司名"></asp:BoundColumn>
                <asp:ButtonColumn CommandName="Delete" Text="删除"></asp:ButtonColumn>
            </Columns>
        </asp:DataGrid><br />
        &nbsp;<br />
        &nbsp;</div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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