Working with AdRotator Control

Example of  AdRotator Control:





Working with AdRotator Control

Create a new web page and place an AdRotator control on it.


<form >
<div>
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile ="~/ads.xml"
onadcreated="AdRotator1_AdCreated" />
</div>
</form>

The ads.xml file and the image files should be located in the root directory of the web site.


Try to execute the above application and observe that each time the page is reloaded,





Asp.net related other post:

·                     Understanding controllers in Asp.net MVC
·                     Action Method in Asp.net MVC Controller
·                     Controllers and Action Methods in ASP.NET MVC Appl...
·                     Asp.net Step By Step Working with MVC3
·                     Asp.net with c# example - datetime day of week
·                     Asp.net web Development related Important Post Li...
·                     Why the web.cofig file is very important (The Role...
·                     Validate a date using RangeValidator in asp.net c#...
·                     Example of Asp.net PlaceHolder Server Control
·                     Asp.net PlaceHolder Server Control
·                     C# Coding Conventions (C# Programming Guide)
·                     List of Coding Standard guidelines/checklists for ...
·                     What is the best way to create HTML in C# code
·                     Display Data in HTML Table from Database using Asp...
·                     Templates in Asp.net DataList Control
·                     Introduction of Asp.net Datalist Control

·                     How to bind asp datalist control dynamically

Comments

Popular posts from this blog