Control.TemplateControl Property

Gets or sets a reference to the template that contains this control.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public TemplateControl TemplateControl { get; set; }
/** @property */
public TemplateControl get_TemplateControl ()

/** @property */
public void set_TemplateControl (TemplateControl value)

public function get TemplateControl () : TemplateControl

public function set TemplateControl (value : TemplateControl)

Not applicable.

Property Value

The TemplateControl instance that contains this control.

When a Control instance is part of a control template, the TemplateControl property contains a reference to the containing control. For more information, see the System.Web.UI.TemplateControl documentation.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions