.NET Framework Class Library
ControlBindingContainer Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets the control that contains this control's data binding.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)
Syntax
<[%$TOPIC/ccay51da_en-us_VS_110_1_0_0_0_0%](False)> _
<[%$TOPIC/ccay51da_en-us_VS_110_1_0_0_0_1%](False)> _
Public ReadOnly Property BindingContainer As [%$TOPIC/ccay51da_en-us_VS_110_1_0_0_0_2%]
[[%$TOPIC/ccay51da_en-us_VS_110_1_0_1_0_0%](false)]
[[%$TOPIC/ccay51da_en-us_VS_110_1_0_1_0_1%](false)]
public [%$TOPIC/ccay51da_en-us_VS_110_1_0_1_0_2%] BindingContainer { get; }
[[%$TOPIC/ccay51da_en-us_VS_110_1_0_2_0_0%](false)]
[[%$TOPIC/ccay51da_en-us_VS_110_1_0_2_0_1%](false)]
public:
property [%$TOPIC/ccay51da_en-us_VS_110_1_0_2_0_2%]^ BindingContainer {
	[%$TOPIC/ccay51da_en-us_VS_110_1_0_2_0_3%]^ get ();
}
[<[%$TOPIC/ccay51da_en-us_VS_110_1_0_3_0_0%](false)>]
[<[%$TOPIC/ccay51da_en-us_VS_110_1_0_3_0_1%](false)>]
member BindingContainer : [%$TOPIC/ccay51da_en-us_VS_110_1_0_3_0_2%] with get

Property Value

Type: System.Web.UIControl
The Control that contains this control's data binding.
Remarks

The BindingContainer property contains a reference to the Control object that contains the data-binding information for the current control.

The BindingContainer property is the same as the NamingContainer property, except when the control is part of a template. In that case, the BindingContainer property is set to the Control that defines the template.

Version Information

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
Platforms

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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