📄 test.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/ChildMasterPage.master" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="AccessDataSource1"
Style="position: relative" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
<Columns>
<asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
SortExpression="id" >
<ControlStyle BackColor="#FFC0C0" BorderColor="#80FF80" BorderStyle="Dashed" Font-Size="Medium"
ForeColor="Blue" Width="200px" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Bottom" Width="100px" Wrap="False" />
</asp:BoundField>
<asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="content.aspx?id={0}"
DataTextField="title" NavigateUrl="~/kaixin.aspx">
<ItemStyle Width="395px" />
</asp:HyperLinkField>
</Columns>
<EmptyDataTemplate>
暂时没有数据!
</EmptyDataTemplate>
<FooterStyle BackColor="White" ForeColor="#000066" />
<RowStyle ForeColor="#000066" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
</asp:GridView>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/s.mdb"
SelectCommand="SELECT * FROM [baojianwangshujukudb]"></asp:AccessDataSource>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -