This documentation is archived and is not being maintained.

ExpressionBuilderContext::TemplateControl Property

Provides an ExpressionBuilder object with a reference to a TemplateControl object.

Namespace:  System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

public:
property TemplateControl^ TemplateControl {
	TemplateControl^ get ();
}

Property Value

Type: System.Web.UI::TemplateControl
The TemplateControl that contains this expression.

An expression builder might require additional information about the containing page to evaluate or parse the expression value.

This also provides the ExpressionBuilder object with information regarding the page that might be required. When an instance of a control is part of a control template, the TemplateControl property contains a reference to the containing control. For more information, see TemplateControl.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: