📄 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>
<form id="form1" runat="server">
<div>
</div>
<table style="z-index: 100; left: 32px; position: absolute; top: 32px; border-top-style: groove; border-right-style: groove; border-left-style: groove; border-bottom-style: groove;">
<caption>
<span style="font-size: 16pt; font-family: 黑体">缓存运行测试</span></caption>
<tr>
<td style="width: 403px">
本机时间:<asp:Literal ID="Literal1" runat="server"></asp:Literal></td>
</tr>
<tr>
<td style="width: 403px">
最后缓存时间:<asp:Literal ID="Literal2" runat="server"></asp:Literal></td>
</tr>
<tr>
<td style="width: 403px; height: 296px">
<asp:GridView ID="GridView1" runat="server" Height="233px" Width="386px" AutoGenerateColumns="False" DataKeyNames="au_id" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="au_id" HeaderText="au_id" ReadOnly="True" SortExpression="au_id" />
<asp:BoundField DataField="au_lname" HeaderText="au_lname" SortExpression="au_lname" />
<asp:BoundField DataField="city" HeaderText="city" SortExpression="city" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:pubsConnectionString %>"
SelectCommand="SELECT [au_id], [au_lname], [city] FROM [authors]" CacheDuration="20" EnableCaching="True" OnSelected="SqlDataSource_Selected">
</asp:SqlDataSource>
<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Default2.aspx">页面缓存>>></asp:LinkButton></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -