October 2010
Intermediate to advanced
1920 pages
73h 55m
English
LayoutTemplate and ItemTemplateLet’s start with a ListView control simple scenario in which you might want to use the ListView control. Suppose that you have a set of database records that you want to display in a set of HTML <div> tags. The page in Listing 14.1 illustrates how you can use the LayoutTemplate and ItemTemplate templates to display the records from the Movie database table.
Listing 14.1. SimpleListView.aspx


The ListView control in Listing 14.1 contains five templates. First, the LayoutTemplate creates a single containing ...