This section includes the following samples:
DataBind7 Sample
DataBind4 Sample
DataBind5 Sample
DataBind6 Sample
DataBind3 Sample
DataBind2 Sample
DataBind1 Sample
DataBind7 Sample
This sample illustrates using the DataBinder.Eval method for binding data in a late-bound (and consequently performance-reducing) way.
Namespaces used in this sample:
System.Data; System
Classes used in this sample:
DataBinder; Binder; Container; DataColumn; String; Page; DataTable; Table; DataRow; Object; CheckBox; EventArgs; Import; DataList; DataView
DataBind4 Sample
This sample illustrates binding to a DataView object on an ASP.NET page. Note that the DataView class is defined in the System.Data namespace.
Namespaces used in this sample:
System.Data; System
Classes used in this sample:
DataColumn; DataView; Page; DataTable; Table; String; Style; DataRow; DataGrid; Header; EventArgs; Import; Object
DataBind5 Sample
This sample illustrates binding to a Hashtable collection on an ASP.NET page.
Namespaces used in this sample:
(none)
Classes used in this sample:
DataList; Hashtable; Hash; Page; Container; DataBinding; Object; Binding; EventArgs
DataBind6 Sample
This sample illustrates binding to an expression and the return value of a method on an ASP.NET page.
Namespaces used in this sample:
(none)
Classes used in this sample:
DataList; Page; Container; ArrayList; Array; Object; EventArgs; String
DataBind3 Sample
This sample illustrates binding to an ArrayList collection on an ASP.NET page.
Namespaces used in this sample:
(none)
Classes used in this sample:
Label; DropDownList; Page; Object; ArrayList; Array; EventArgs; DataBinding; Binding
DataBind2 Sample
This sample illustrates binding to a property of another server control on an ASP.NET page.
Namespaces used in this sample:
(none)
Classes used in this sample:
ListItem; DropDownList; Page; DataBinding; Binding; Object; EventArgs
DataBind1 Sample
This sample illustrates binding to a public variable and simple property on an ASP.NET page.
Namespaces used in this sample:
(none)
Classes used in this sample:
Page; DataBinding; Binding; Object; EventArgs