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 AdTester : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
protected void adTest3_AdCreated(object sender, AdCreatedEventArgs e)
{
    if (chkStudent.Checked)
    {
        e.ImageUrl = "~/Images/ads/ad3.gif";
        e.AlternateText = "First Day Of Class";
        e.NavigateUrl = "http://www.etipsforagrades.com";
    }
    else
    {
        e.ImageUrl = "~/Images/ads/ad2.gif";
        e.AlternateText = "Pearson Ed";
        e.NavigateUrl = "http://www.pearsoned.com";
    }
}
}
