Storing Advertisements in an XML File
You can store the list of advertisements that the AdRotator displays in an XML file by setting the AdRotator
control’s AdvertisementFile
property. For example, the page in Listing 4.11 contains three AdRotator
controls that retrieve banner advertisements from an XML file named AdList.xml
(see Figure 4.8).
Figure 4.8. Displaying advertisements from an XML file.
Listing 4.11. AdRotatorXML.aspx
The page in ...
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.