Selecting a Row

You can set up the ListView control so you can use it to select items. This is useful when you want to create a master/detail form.

For example, the page in Listing 14.4 contains two ListView controls. The first ListView works like a tab strip. It enables you to select a movie category. The second ListView displays a numbered list of matching movies.

Listing 14.4. MasterDetail.aspx

images

images

images

The first ListView control in Listing 14.4 renders ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.