📄 default.aspx
字号:
<%@ 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -