发布: 2008-5-07 13:40 | 作者: 网络转载 | 来源: 本站原创 | 查看: 288次 | 进入软件测试论坛讨论
<%@ Control Language="C#" AutoEventWireup="true" %> <%@ OutputCache Duration="100" VaryByParam="None" %> <%= DateTime.Now.ToString() %> CachedControl.aspx <%@ Page Language="C#" AutoEventWireup="true" %> <%@ Register Src="CachedControl.ascx" TagName="CachedControl" TagPrefix="uc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Cached Control</title> </head> <body> <form id="form1" runat="server"> <asp:scriptManager ID="scriptManager1" runat="server"> </asp:scriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <uc1:CachedControl ID="CachedControl1" runat="server" /> <br /> <%= DateTime.Now.ToString() %> <asp:Button ID="Button1" runat="server" Text="Async PostBack" /> </ContentTemplate> </asp:UpdatePanel> <asp:Button ID="Button2" runat="server" Text="PostBack" /> </form> </body> </html>
文章来源于领测软件测试网 https://www.ltesting.net/