.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)
<[%$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%]
public [%$TOPIC/ccay51da_en-us_VS_110_1_0_1_0_2%] BindingContainer { get; }
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 ();
member BindingContainer : [%$TOPIC/ccay51da_en-us_VS_110_1_0_3_0_2%] with get
function get BindingContainer () : [%$TOPIC/ccay51da_en-us_VS_110_1_0_4_0_0%]

Property Value

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

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.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1