<html>
<title>Dynamic HyperLink Example</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server">
void getAdProps ( object src, AdCreatedEventArgs e ) {
myLink.Text = e.AlternateText;
myLink.NavigateUrl = e.NavigateUrl;
}
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc -->
<div class="header"><h2>Dynamic HyperLink Example</h2></div>
<!-- #include virtual="~/shared/viewsrc_top.inc" -->
<hr size=1 width=92%>
<div align="center">
<form runat="server">
<p><asp:adrotator
advertisementfile="~/shared/books.xml"
bordercolor="silver" borderwidth=1
onAdCreated="getAdProps"
target="_blank" runat="server" /></p>
<p><asp:hyperlink id="myLink" target="_blank" runat="server" />
<p><asp:button id="myButton" runat="server" text="Reload"
backcolor="darkslategray" forecolor="khaki" font-bold />
</form>
</div>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>