Duration: 20 minutes
Summary: In this video, we are going to talk about the AdRotator in ASP.Net control. We use this control to display advertisements on our web sites. The ads could be coming from the database or an XML file. In this case we are using an XML file. There are two things that we need to do: (1) create the page with the AdRotator control on it (2) create the XML file that contains the actual ads. When creating the XML file, we need to add special keywords that ASP.NET can understand. Some of these keywords are: ImageUrl, Width, Height, NavigateUrl, AlternateText, Impressions, and Keyword. Most of these are self-explanatory, but keyword is used because you might need to display ads in different sections of the page. Every section can be associated with a keyword (the other alternative would be to create a separate XML file for every section). Impression means how often you would want a specific ad to show in comparison with the other ads. The higher the number, the more the ad will show. There is no specific boundary for the number. ASP.NET would know the percentage when it adds up all the impressions for a specific keyword (or the whole file if there is no keyword). And last but not least we drop the AdRotator controls on the page (one in the top and one in the bottom). For each control we specify the advertisement file and the keyword filter.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: AdRotator in ASP.Net, ASP.NET 4, Visual Studio 2010, AdRotator, AdvertisementFile, KeywordFilter, ImageUrl, Width, Height, NavigateUrl, AlternateText, Impressions, Keyword.