直接有个控件叫adretor,具体单词我忘了,你用这个控件,再设置无刷atlas页面就是了,如果还有什么问题请联系qq379868872
同意楼上,我前几天弄了个给你代码参考下:
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/XMLFile.xml"/>
创建XMLFile.xml
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>/articles/demo/art008_demo1.gif</ImageUrl>
<NavigateUrl>http://www.bc-cn.net</NavigateUrl>
<AlternateText>Test 1</AlternateText>
<Keyword>Category1</Keyword>
<Impressions>10</Impressions>
</Ad>
<Ad>
<ImageUrl>/articles/demo/art008_demo2.gif</ImageUrl>
<NavigateUrl>http://www.bc-cn.net</NavigateUrl>
<AlternateText>Test 2</AlternateText>
<Keyword>Category1</Keyword>
<Impressions>10</Impressions>
</Ad>
<Ad>
<ImageUrl>/articles/demo/art008_demo3.gif</ImageUrl>
<NavigateUrl>http://www.bc-cn.net</NavigateUrl>
<AlternateText>Test 3</AlternateText>
<Keyword>Category2</Keyword>
<Impressions>10</Impressions>
</Ad>
</Advertisements>