- container
- The object reference against which expr is evaluated. This must be a valid object identifier in the specified language for the page.
- expr
- The navigation path from the container object to the public property value to place in the bound control property. This must be a string of property or field names separated by periods, such as Tables[0].DefaultView.[0].Price in C# or Tables(0).DefaultView.(0).Price in Visual Basic.
An object that results from the evaluation of the data-binding expression.
The value of expr must evaluate to a public property.
For any of the list Web controls, such as System.Web.UI.WebControls.GridView, System.Web.UI.WebControls.DetailsView, System.Web.UI.WebControls.DataList, or System.Web.UI.WebControls.Repeater, container should be Container.DataItem. If you are binding against the page, container should be Page.