Main Page

  Previous Section Next Section


System.Web.UI (system.web.dll)abstract class

This abstract class provides basic functionality for template controls, which include Page and UserControl. This functionality includes transaction support and various properties, methods, and events that are used and managed transparently by the ASP.NET framework.

public abstract class TemplateControl : Control, INamingContainer {
// Protected Constructors 
   protected TemplateControl( );
// Protected Instance Properties
   protected virtual int AutoHandlers{set; get; }
   protected virtual bool SupportAutoEvents{get; }
// Public Static Methods
   public static object ReadStringResource(Type t);
// Public Instance Methods
   public Control LoadControl(string virtualPath);
   public ITemplate LoadTemplate(string virtualPath);
   public Control ParseControl(string content);
// Protected Instance Methods
   protected virtual void Construct( );
   protected LiteralControl CreateResourceBasedLiteralControl(int offset, int size, bool fAsciiOnly);
   protected virtual void FrameworkInitialize( );
   protected virtual void OnAbortTransaction(EventArgs e);
   protected virtual void OnCommitTransaction(EventArgs e);
   protected virtual void OnError(EventArgs e);
   protected void SetStringResourcePointer(object stringResourcePointer, int maxResourceOffset);
   protected void WriteUTF8ResourceString(HtmlTextWriter output, int offset, int size, bool fAsciiOnly);
// Events
   public event EventHandler AbortTransaction;
   public event EventHandler CommitTransaction;
   public event EventHandler Error;


System.Object Control(System.ComponentModel.IComponent, System.IDisposable, IParserAccessor, IDataBindingsAccessor) TemplateControl(INamingContainer)


Page, UserControl

      Previous Section Next Section