Adds a binding to the control. This method is a simple
way to establish a binding.
Returns the Item so you can customize properties further
Namespace:
Mindscape.LightSpeed.Web.WebFormsAssembly: Mindscape.LightSpeed.Web (in Mindscape.LightSpeed.Web.dll)
Version: 4.0.1000.1 (4.0.0.0)
Syntax
C# |
---|
public EntityDataBindingItem AddBinding( Control ControlToBind, string ControlPropertyToBind, string SourceObjectNameToBindTo, string SourceMemberToBindTo ) |
Visual Basic (Declaration) |
---|
Public Function AddBinding ( _ ControlToBind As Control, _ ControlPropertyToBind As String, _ SourceObjectNameToBindTo As String, _ SourceMemberToBindTo As String _ ) As EntityDataBindingItem |
Parameters
- ControlToBind
- Type: System.Web.UI..::.Control
The control which is to be bound on the WebForm
- ControlPropertyToBind
- Type: System..::.String
The property on the control which is to be bound by the DataBinder
- SourceObjectNameToBindTo
- Type: System..::.String
The object which is to be bound from your model or code behind file
- SourceMemberToBindTo
- Type: System..::.String
The property on the object which is to be bound by the DataBinder