ASP.NET BindingContainer property
Definition and Usage
BindingContainer property Gets the control that contains data binding. BindingContainer property contains a reference to the Control object, the object contains the current control data binding information.
Tips and Notes
Note: This property supports the .NET Framework infrastructure and is not intended to be used directly from your code.
NOTE: The same BindingContainer property NamingContainer property, except when the control is part of a template.In this case, BindingContainer property is set to define a template of Control.
Examples
The following example shows BindingContainer Button control:
<script runat="server">
Sub Button1_Click(sender As Object, e As EventArgs)
Response.Write("The binding container is: ")
Response.Write(button1.BindingContainer)
End Sub
</script>
<form runat="server" >
<asp:Button ID="button1" OnClick="Button1_Click"
Text="Get BindingContainer" runat="server" />
</form>
Sub Button1_Click(sender As Object, e As EventArgs)
Response.Write("The binding container is: ")
Response.Write(button1.BindingContainer)
End Sub
</script>
<form runat="server" >
<asp:Button ID="button1" OnClick="Button1_Click"
Text="Get BindingContainer" runat="server" />
</form>
The demonstration >>
Control Standard Properties Reference