Download files
Although there is a built-in control for advertisement rotation in ASP.NET, it is capable of showing image ads only. However, in the real life you often have to deal with the ads that require some JavaScript code, for instance, you want to put there AdSense code or want to use Flash banners instead of images. Thus, if you want to rotate complex ads, you have to develop your own control.
In this particular tutorial I'll show you how to create a very simple, but rather functional user control that will randomly show an ad from an XML file More...