In addition to assigning simple properties like the Text
of the Literal from the Name of the underlying data
item, you can also use Eval to get complex properties.
In this example, Eval("Reviews") is used to get
the collection of Reviews for the current Genre. The
BulletedList control then understands how to handle
this data source and retrieves the Title from each individual
Review object and then displays that in the list.
The diagram in Figure 14-8 shows you how each Genre
contains one or more reviews, whose titles are displayed
below the name of the genre.
After you have set up the Repeater and defi ned the
query, you need to start the data-binding process. You
do this by assigning the results of the query to the
DataSource property of the Repeater, followed by a
call to DataBind() as shown in this C# example: