<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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>    
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            DataFile="~/App_Data/db_blog.mdb" SelectCommand="SELECT * FROM [tb_user]">
        </asp:AccessDataSource>    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="编号" DataSourceID="AccessDataSource1">
            <Columns>
                <asp:BoundField DataField="编号" HeaderText="编号" InsertVisible="False" 
                    ReadOnly="True" SortExpression="编号" />
                <asp:BoundField DataField="username" HeaderText="username" 
                    SortExpression="username" />
                <asp:BoundField DataField="userpwd" HeaderText="userpwd" 
                    SortExpression="userpwd" />
                <asp:BoundField DataField="type" HeaderText="type" SortExpression="type" />
            </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
