[Mono-bugs] [Bug 52769][Nor] New - Page Fragment Caching does not work
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Jan 2004 05:51:55 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by mwh@sysrq.dk.
http://bugzilla.ximian.com/show_bug.cgi?id=52769
--- shadow/52769 2004-01-12 05:51:55.000000000 -0500
+++ shadow/52769.tmp.21694 2004-01-12 05:51:55.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 52769
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details: mono-0.29, Xsp-0.8
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mwh@sysrq.dk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Page Fragment Caching does not work
+
+The following sample implements a user control which is cached for 15 seconds.
+Unfortunately the caching does not work, when reloaded in less than 15
+seconds the timestamp is updated.
+
+<!-- MyControl.ascx -->
+<!-- A user control with caching -->
+<%@ OutputCache Duration=15 VaryByParam=none %>
+<%@ Control Language=C# %>
+
+<script runat=server>
+protected override void OnLoad (EventArgs args)
+{
+ Date.Text = "User control generated at: " + DateTime.Now;
+}
+
+</script>
+<asp:Label id='Date' runat=server />
+
+<!-- PageFragmentCaching.aspx -->
+<!-- Sample of how page fragment caching works -->
+<%@ Page Language=C# %>
+<%@ Register TagPrefix=sample TagName=MyControl Src=MyControl.ascx %>
+
+<html>
+<body>
+
+<sample:MyControl runat=server />
+<br>
+Page generated at: <%= DateTime.Now %>
+
+</body>
+</html>