<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="AdTest" %>
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 AdTest : System.Web.UI.Page
{
protected void AdRotator1_AdCreated(object sender, AdCreatedEventArgs e)
{
lnkBanner.NavigateUrl = e.NavigateUrl;
lnkBanner.Text = "Click here for information about our sponsor: ";
lnkBanner.Text += e.AlternateText;
}
}
File: ads.xml
a.gif
http://www.a.com
A
20
books
j.gif
http://www.j.com
J
20
Java