Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / class / System.Web / Test / standalone / OutputCacheProvider / OutputCacheProviderTest_01 / Default.aspx.cs
1 using System;
2 using System.Text;
3 using System.Web;
4 using System.Web.Caching;
5 using System.Web.UI;
6 using System.Web.UI.WebControls;
7
8 public partial class _Default : System.Web.UI.Page
9 {
10         protected void Page_Load (object sender, EventArgs e)
11         {
12                 var sb = new StringBuilder ();
13                 string name = OutputCache.DefaultProviderName;
14
15                 sb.AppendFormat ("Default provider name: {0}\n", name);
16                 name = ApplicationInstance.GetOutputCacheProviderName (null);
17                 sb.AppendFormat ("Null context: {0}\n", name);
18
19                 name = ApplicationInstance.GetOutputCacheProviderName (Context);
20                 sb.AppendFormat ("Default context: {0}\n", name);
21
22                 output.InnerText = sb.ToString ();
23         }
24 }