If you wish to show ads on your webpage then adrotator control will come handy for you. This control allows you to select impressions, images and even allows you to redirect to another URL if any person clicks on image.
Adrotator control minimizes headache of using external advertising scripts and you’ll be able to display ads on your own. In order to perform ad rotation on your web page follow the steps shown below:
- Drop “AdRotator” control and then add .xml file in your project.
- Select control and click on properties box
- Select Schema > Check for “Adrotator.xsd” file in the list and then add the file
- Open XML file and add following tags:
< pre >
< Advertisement xmlns= “ “ >
< Ad xmlns=” “ >
< imageurl >< / imageurl>
< impression > < impression>
< / Ad>
< / Advertisement>
< / pre >
Make sure you add atleast 2 ad tags. There should be no spacing while writing tag names(spacing shown in above code is because of the issue with CMS).