<%@ Page language="c#" AutoEventWireup="true" %>
<HTML>
	<HEAD>
		<title>AdRotator控件示例 </title>
		<script language="C#" runat="server">
		protected void AdRotator1_AdCreated(object sender, System.Web.UI.WebControls.AdCreatedEventArgs e)
		{
			if(Application["adcounter"] == null)
			{
				Application["adcounter"] = 0;
			}
			else
			{
				Application["adcounter"] = (int)Application["adcounter"]+1;
			}
		}
		</script>
	</HEAD>
	<body>
		<form id="Form1" runat="server">
			<h3>AdRotator 控件示例</h3>
			<P>
				<asp:adrotator 
					id="AdRotator1" 
					runat="server" 
					Target="_blank" 
					AdvertisementFile="Ads.xml" 
					Width="468px"
					Height="60px" 
					ForeColor="#E0E0E0" 
					KeywordFilter="Topic1" 
					OnAdCreated="AdRotator1_AdCreated">
				</asp:adrotator>
			</P>
		</form>
	</body>
</HTML>
