0
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ OutputCache Duration="10" Location="Server" VaryByParam="none" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
Welcome to ASP.NET!
</h2>
<p>
To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">
www.asp.net</a>.
</p>
<p>
This is cached date text
<asp:Label ID="lblDate" runat="server"></asp:Label>
</p>
<p>
This is uncached date text
<asp:Label ID="lblDate1" EnableViewState="false" runat="server"></asp:Label>
</p>
<p>
You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&clcid=0x409"
title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
</p>
</asp:Content>
在上面的代码中,我想,只有lblDate1值应该改变,每当我将刷新我怎么能acheive this.Currently两个控制值歌厅cahced的页面。如何保持uncahced页的小部分页面进行放缓存