using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.AdRotator1.ImageUrlField = "ImageUrl";
            this.AdRotator1.KeywordFilter = "Test";
            this.AdRotator1.NavigateUrlField = "NavigateUrl";
            this.AdRotator1.AlternateTextField = "AlternateText";
            this.AdRotator1.AdvertisementFile = "XMLFile.xml";
        }
    }
    protected void AdRotator1_AdCreated(object sender, AdCreatedEventArgs e)
    {
        Label1.Text = "提示信息：  " + e.AlternateText + "　6 秒后自动刷新";
    }
}
