Source code location: ./composite_data_bound_control/compositeboundbooklist.cs

using System;
using System.Web.UI;
using System.Collections.Generic;

public partial class CompositeBoundBookList : Page 
{
    protected override void OnLoad (EventArgs e)
    {
        base.OnLoad (e);

        if (!Page.IsPostBack)
        {
            List<Book> books = new List<Book> (3);

            books.Add (new Book ("Refactoring Databases", 34.95));
            books.Add (new Book ("Refactoring to Patterns", 38.25));
            books.Add (new Book ("Refactoring: Improving the Design of Existing Code", 41.95));

            Books.DataSource = books;
            Books.DataBind ();
        }
    }
}