Using a Keyword AdRotator Control (VB.net)
<%@ Page Language=VB Debug=true %>
<HTML>
<HEAD>
<TITLE>Using a Keyword AdRotator Control</TITLE>
</HEAD>
<BODY LEFTMARGIN="40">
<form runat="server">
<asp:adrotator
advertisementfile="AdRotatorKeyword.xml"
keywordfilter="ShowMe"
target="_blank"
bordercolor="blue"
borderwidth=3
runat="server"
/>
</form>
</BODY>
</HTML>
<%--
<Advertisements>
<Ad>
<ImageUrl>http://www.java2s.com/style/logo.png</ImageUrl>
<NavigateUrl>http://www.java2s.com</NavigateUrl>
<AlternateText>Cick me now!</AlternateText>
<Keyword>ShowMe</Keyword>
<Impressions>71</Impressions>
</Ad>
<Ad>
<ImageUrl>http://www.java2s.com/style/download.png</ImageUrl>
<NavigateUrl>http://www.microsoft.com</NavigateUrl>
<AlternateText>Go to Microsoft Site</AlternateText>
<Keyword>ShowMe</Keyword>
<Impressions>70</Impressions>
</Ad>
<Ad>
<ImageUrl>http://www.java2s.com/style/download.png</ImageUrl>
<NavigateUrl>http://www.microsoft.com</NavigateUrl>
<AlternateText>Won't see me</AlternateText>
<Keyword>DoNotShowMe</Keyword>
<Impressions>2000</Impressions>
</Ad>
</Advertisements>
--%>
Related examples in the same category