Using a Custom Tag in an AdRotator Control (VB.net)
<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub AdCreated_Event(ByVal Sender as Object, _
ByVal E as AdCreatedEventArgs)
lblMessage.Text = "Here is the account name for the ad: " _
& E.AdProperties("AccountName").ToString()
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Using a Custom Tag in an AdRotator Control</TITLE>
</HEAD>
<BODY LEFTMARGIN="40">
<form runat="server">
<asp:adrotator
id="ad1"
onadcreated="AdCreated_Event"
advertisementfile="AdRotatorCustom.xml"
target="_blank"
bordercolor="blue"
borderwidth=3
runat="server"
/>
<BR><BR>
<asp:Label
id="lblMessage"
runat="server"
/>
</form>
</BODY>
</HTML>
Related examples in the same category