<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="AdminUser.aspx.cs" Inherits="LoveWeb.Admin.AdminUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <title>用户管理页面</title>
    <div>
    
    <h1>显示所有用户</h1>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" DataKeyNames="Userid" DataSourceID="objUser" 
            BorderColor="#CCFFFF" CssClass="zitidaxiao">
            <Columns>
                <asp:BoundField DataField="Userid" HeaderText="用户编号" ReadOnly="True" 
                    SortExpression="Userid" />
                <asp:BoundField DataField="Username" HeaderText="用户名" 
                    SortExpression="Username" />
                <asp:BoundField DataField="Pwd" HeaderText="密码" SortExpression="Pwd" />
                <asp:BoundField DataField="Lim" HeaderText="权限" SortExpression="Lim" />
                <asp:CommandField HeaderText="修改用户" ShowDeleteButton="True" 
                    ShowEditButton="True" />
            </Columns>
            <EditRowStyle BorderColor="#3399FF" BorderWidth="1px" ForeColor="#CC6600" />
        </asp:GridView>
        <asp:ObjectDataSource ID="objUser" runat="server" 
            DataObjectTypeName="Models.User" DeleteMethod="DelUser" 
            SelectMethod="GetUserAll" TypeName="LoveBLL.UserManager" UpdateMethod="UpUser">
        </asp:ObjectDataSource>
    
    
    </div>
    </asp:Content>

