Data Binding Samples
This next section shows you some samples that involve basic ASP.NET Web Forms data binding. You will see how to bind data to simple properties, how to list type controls such as the Repeater and DataList, and finally you will see an example of using the ASP.NET DataGrid control in a data-bound situation.
You have already seen plenty of examples of simple binding in this chapter. Whenever you use the <%# %> syntax to evaluate some expression in the ASP.NET page at bind time, you are using simple binding. A section is included here just as a refresher to remind you that you can accomplish some pretty amazing things using just simple data binding. You should always try to look for the simplest solution to any ...