<html>
<head>
<title>AdCreated Event Handler Example</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server">
void myAdCreatedHandler ( Object src, AdCreatedEventArgs e ) {
adProps.DataSource = e.AdProperties;
adProps.DataBind ( );
}
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h2>AdCreated Event Handler Example</h2></div>
<hr size=1 width=92%>
<form runat="server">
<div align="center">
<asp:adrotator runat="server" target="_blank"
width=234 height=60
borderwidth=1 bordercolor="silver"
advertisementfile="banners234.xml"
onAdCreated="myAdCreatedHandler"/>
<p><input type=submit value="Reload" runat="server"></p>
<asp:repeater id="adProps" runat="server">
<headertemplate>
<table width="90%" cellspacing=1 cellpadding=5>
<tr style="background-color:lightsteelblue">
<th colspan=2>Ad Properties</th></tr>
</headertemplate>
<itemtemplate>
<tr style="background-color:#efefef">
<td><%# Eval ( "Key" ) %></td>
<td><%# Eval ( "Value" ) %></td></tr>
</itemtemplate>
<footertemplate>
</table>
</footertemplate>
</asp:repeater>
</div>
</form>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>