Using a Custom Tag in an AdRotator Control (VB.net) : Adrotator « Asp Control « ASP.Net






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

1.Using a Basic AdRotator Control (VB.net)
2.On ad create event for asp:adrotator (VB.net)
3.Using a Keyword AdRotator Control (VB.net)
4.asp:adrotator with a calendar (VB.net)
5.asp:adrotator and its xml (VB.net)
6.Custom asp:AdRotator create event (C#)