October 2010
Intermediate to advanced
1920 pages
73h 55m
English
Rather than store the list of advertisements in an XML file, you can store the list in a database table. For example, the AdRotator control contained in Listing 4.13 is bound to a SqlDataSource control. The SqlDataSource control represents the contents of a database table named AdList, which is located in a SQL Express database named AdListDB.
Listing 4.13. AdRotatorDatabase.aspx

To use the page in Listing 4.13, you need to create the AdList database table. This table has the following schema:

The columns ...