Monday 9 April 2012

How to use AdRotator Control in Asp.Net.


What is the AdRotator control and it's uses? 


AdRotator is a special control in ASP.NET used to display flashing banner advertisments. The control can display advertisments randomly or sequentially as set by the developer.

To implement this concept you need to follow the below steps :

Step1:
 
Create a new Asp.net website in Visual Studio and  write the following html code in the Source Page of the Default.aspx page and add an Xml file to the solution

AdRotator.aspx (Source Page)



Step 2:
     
This is how the Design Page looks.

AdRotator.aspx (Design Page)

Step4:

Now build the Solution and Debug it for the output.  The xml file looks like this

 


No comments:

Post a Comment