温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:VS2005典型实例源码大全(C#)
当前文件:
VS2005Helper/Web/Cahce/PageByParam.aspx,打开代码结构图
VS2005Helper/Web/Cahce/PageByParam.aspx,打开代码结构图1<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="PageByParam.aspx.cs" 2
Inherits="Cahce_PageByParam" Title="页面输出缓存(VaryByParam)" %> 3
4
<%@ OutputCache CacheProfile="CacheTest" VaryByParam="p1;p2" %> 5
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> 6
<p> 7
CacheProfile="CacheTest" VaryByParam="p1;p2" 8
<br /> 9
CacheProfile="CacheTest" - 从web.config中读信息 10
<br /> 11
get或post方式都行 12
</p> 13
<p> 14
<a href="?p1=a&p2=b">第一组</a> 15
<br /> 16
<a href="?p1=c&p2=d">第二组</a> 17
<br /> 18
<a href="?p1=e&p2=f">第三组</a> 19
</p> 20
<p> 21
<%=DateTime.Now %> 22
</p> 23
</asp:Content> 24



Inherits
