📄 cachebyheader.aspx
字号:
<%@ Page Language="C#" %>
<%@ OutputCache Duration="300" VaryByParam="*" VaryByHeader="User-Agent"%>
<script language="C#" runat=server>
string strBuyOurProducts;
void Page_Load(Object sender , EventArgs e)
{
if ( Request.Browser.Browser == "Netscape" ) {
strBuyOurProducts = "<Blink>Buy Our Products!</Blink>";
} else {
strBuyOurProducts = "<font color=red>Buy Our Products!</font>";
}
}
</Script>
<html>
<head><title>CacheByHeader.aspx</title></head>
<body>
<h1><%=strBuyOurProducts %></h1>
<hr>
<small>Last Updated: <%=System.DateTime.Now%></small>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -