default.aspx

来自「水晶报表详细资料水晶报表详细资料水晶报表详细资料」· ASPX 代码 · 共 39 行

ASPX
39
字号
<%@ 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 style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/student.mdb"
            SelectCommand="SELECT * FROM [studentInfo]">
        </asp:AccessDataSource>
    
    </div>
        <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False"
            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
            CellPadding="4" DataKeyNames="id" DataSourceID="AccessDataSource1" Font-Size="12pt"
            Height="1px" Width="322px" Font-Bold="True" ForeColor="Black" GridLines="Horizontal">
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <EditRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <Fields>
                <asp:BoundField DataField="id" HeaderText="编号" ReadOnly="True" SortExpression="id" />
                <asp:BoundField DataField="stuNmae" HeaderText="姓名" SortExpression="stuNmae" />
                <asp:BoundField DataField="stuClass" HeaderText="班级" SortExpression="stuClass" />
                <asp:BoundField DataField="stuAge" HeaderText="年龄" SortExpression="stuAge" />
            </Fields>
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
            <HeaderTemplate>
                Access数据库<br />
                学生信息
            </HeaderTemplate>
        </asp:DetailsView>
    </form>
</body>
</html>

⌨️ 快捷键说明

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