您目前尚未登陆,请选择【登陆】或【注册
首页->功能源码->VS2005典型实例源码大全(C#)>>Web/Cahce/PageByControl.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:VS2005典型实例源码大全(C#)
当前文件:文件类型 VS2005Helper/Web/Cahce/PageByControl.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="PageByControl.aspx.cs" 2 Inherits="Cahce_PageByControl" Title="页面输出缓存(VaryByControl)" %> 3 4<%@ Register Src="CacheControl.ascx" TagName="CacheControl" TagPrefix="uc1" %> 5<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> 6 <p> 7 未经缓存设置的容器页: 8 <%=DateTime.Now %> 9 </p> 10 <p> 11 经过VaryByControl设置的用户控件,根据DropDownList的不同缓存不同的内容(用户控件中的@OutputCache指令为Duration="10" 12 VaryByControl="DropDownList1"):<br /> 13 <uc1:CacheControl ID="CacheControl1" runat="server" /> 14 </p> 15</asp:Content> 16
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:VS2005典型实例源码大全(C#)
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号