Files
mono/mcs/class/System.Web/System.Web.UI/StaticPartialCachingControl.cs
T
Andreas N 861cc74227 2003-07-30 Andreas Nahr <[email protected]>
* UserControl.cs: Added attribute
	* BasePartialCachingControl.cs: New class and paritally implemented
	* DesignerDataBoundLiteralControl.cs: New class and implemented
	* DesignTimeTemplateParser.cs:
	* PartialCachingControl.cs:
	* StaticPartialCachingControl.cs: New class and paritally implemented

svn path=/trunk/mcs/; revision=16883
2003-07-30 13:56:03 +00:00

43 lines
1.2 KiB
C#

//
// System.Web.UI.StaticPartialCachingControl.cs
//
// Author:
// Andreas Nahr ([email protected])
//
// (C) 2003 Andreas Nahr
//
using System;
using System.ComponentModel;
namespace System.Web.UI
{
public class StaticPartialCachingControl : BasePartialCachingControl
{
private BuildMethod buildMethod;
[MonoTODO]
public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
{
// TODO add the missing items to base class
this.buildMethod = buildMethod;
}
public static void BuildCachedControl (Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
{
StaticPartialCachingControl NewControl =
new StaticPartialCachingControl (ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, buildMethod);
parent.Controls.Add (NewControl);
}
[MonoTODO]
internal override Control CreateControl()
{
//TODO invoke the build method
//return buildMethod.Invoke ();
throw new NotImplementedException ();
}
}
}