File: MainAds.xml
yourImage.gif
http://www.rntsoft.com
rntsoft.com
1
File: Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="AdRotatorTest" %>
Untitled Page
File: Default.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class AdRotatorTest : System.Web.UI.Page
{
protected void Ads_AdCreated(object sender, AdCreatedEventArgs e)
{
lnkBanner.NavigateUrl = e.NavigateUrl;
lnkBanner.Text = "Click here for information about our sponsor: ";
lnkBanner.Text += e.AlternateText;
}
}