How to Bind Adrotator control in

July 18, 2015 0 Comments

The Adrotator control displays a sequence of images, known as advertisements, on a Web page. The sequence in which the images appear can be predefined or random in nature. These advertisements, which all Internet users are familiar with, are image files in GIF, JPEG, or other format that the user can click to navigate to the advertiser's website.

Public Properties of the Adrotator Class
 AdvertisementFile : Obtains or sets the path to an XML document that contain advertisement information.

Design a xml file for advertisements name as "advertisements.xml" 
<?xml version="1.0" encoding="utf-8" ?>

Drag and drop adrotator control onto the design window from toolbox

<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
        <asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/advertisements.xml" />
How to bind adrotator control in

How to bind Adrotator control in

Jacob Lefore

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard. Google