网站建议:179001057@qq.com

AdRotator控件的使用

技术2022-05-11  0

AdRotator控件的使用

  aspx文件: <%@ Page Language="C#"%> <html> <head> </head> <body> <center> <form action="intro5.aspx" method="post" runat="server"> <asp:AdRotator AdvertisementFile="ads.xml" BorderColor="black" BorderWidth=1 runat="server"/> </form> </center> </body> </html> ads.xml文件: <Advertisements>    <Ad>      <ImageUrl>/quickstart/aspplus/images/banner1.gif</ImageUrl>       <NavigateUrl>http://www.microsoft.com</NavigateUrl>       <AlternateText>Alt Text</AlternateText>       <Keyword>Computers</Keyword> 字串7       <Impressions>80</Impressions>    </Ad>    <Ad>       <ImageUrl>/quickstart/aspplus/images/banner2.gif</ImageUrl>       <NavigateUrl>http://www.microsoft.com</NavigateUrl>       <AlternateText>Alt Text</AlternateText>       <Keyword>Computers</Keyword>       <Impressions>80</Impressions>    </Ad>    <Ad>       <ImageUrl>/quickstart/aspplus/images/banner3.gif</ImageUrl>       <NavigateUrl>http://www.microsoft.com</NavigateUrl>       <AlternateText>Alt Text</AlternateText>       <Keyword>Computers</Keyword> 字串2       <Impressions>80</Impressions>    </Ad> </Advertisements>

最新回复(0)