fragmentcache.aspx
来自「掌握学习.net开发的非常好的资料」· ASPX 代码 · 共 26 行
ASPX
26 行
<%@ Page Language="C#" debug="true" Description="dotnetCHARTING Component"%>
<%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>
<%@ Register TagPrefix="fragment" Tagname= "chart" Src="fragmentcache.ascx" %>
<script runat="server">
void Page_Load(Object sender,EventArgs e)
{
DateTime Dt = DateTime.Now;
Response.Write("This page was created at "+Dt.ToString());
}
</script>
<HTML><HEAD><TITLE>Fragmnet Cache Sample</TITLE></HEAD>
<BODY>
<DIV align=center>
<fragment:chart runat="server"/>
<font size="2" face="Arial">Refresh this chart, it will be cached for 10 seconds then a new chart will be created. You will also see that page render itself is not cached. You will see the page time increase while the chart time does not until 10 seconds pass. See <a href="outputcache.aspx">outputcache</a> for a sample where both the chart image and page are cached together.
</font>
</DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?