综合

img littlehb

记录页面停留时间

发表于2004/10/25 13:58:00  917人阅读

<script language="C#" runat=server>

DateTime startTime;

void Page_Init (Object sender, EventArgs e) //页面加载
{
startTime = DateTime.Now;
//Response.Write("page init<br/>");
}

protected override void Render(HtmlTextWriter writer) //加载结束
{
  base.Render(writer);

  DateTime endTime = DateTime.Now;
  Response.Write("done in " + (endTime-startTime));
}

</script>

阅读全文
0 0

相关文章推荐

img
取 消
img