ABSTRACT

ASP.NET supports binding of a data source to any property on an ASP.NET Web page, including properties of server controls. The formal data binding syntax is shown in Figure 14.1.

When binding the data source to a server control, the binding expression is placed on the value side of an attribute/value pair in the control’s opening tag. The databinding expression must evaluate to the type expected by the property. The binding occurs when a control’s DataBind method is called. When called, the method results in the resolution of the control’s data binding and the data bindings of all of its child controls.