fragment.ascx

来自「Other things about csharp. you could lea」· ASCX 代码 · 共 23 行

ASCX
23
字号
<%@ Language="C#" %>
<%@ OutputCache Duration="10" VaryByControl="Category"%>

<Script runat=server>
  public void Page_Load(){
    // Get the Date and Time, once again this should not change after the first run       
    DateTime NowTime = DateTime.Now;
    DateTime Expires = NowTime.AddSeconds(10);

    CreatedStamp.InnerHtml = NowTime.ToString("r");
    ExpiresStamp.InnerHtml = Expires.ToString("r");
  }
</Script>

<Font size=6>
Fragment Cache created: <Font color=red><B id=CreatedStamp runat=server></B></Font>
<BR>
Fragment Cache expires: <Font color=red><B id=ExpiresStamp runat=server></B></Font>
</Font>



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?