📄 default2.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%@ OutputCache Duration="10" SqlDependency="pubs:Location" VaryByParam="None" %>
<!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>
<table style="z-index: 100; left: 32px; border-top-style: groove; border-right-style: groove;
border-left-style: groove; position: absolute; top: 32px; 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" AutoGenerateColumns="False" DataKeyNames="au_id"
DataSourceID="SqlDataSource1" Height="233px" Width="386px">
<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" CacheDuration="20" ConnectionString="<%$ ConnectionStrings:pubsConnectionString %>"
EnableCaching="True" OnSelected="SqlDataSource_Selected" SelectCommand="SELECT [au_id], [au_lname], [city] FROM [authors]">
</asp:SqlDataSource>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -