首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用adrotator显示广告时出错

使用adrotator显示广告时出错
EN

Stack Overflow用户
提问于 2010-09-16 19:52:39
回答 1查看 194关注 0票数 0

我有AdRotator控件在我的网站上显示一些横幅,但我得到一个错误(AdvertisementFile找不到)。我检查了我的代码,发现一切都是正常的。请任何人帮帮我。

代码语言:javascript
复制
      images/Ad\_1.jpg     [http://toshiba.elarabygroup.com/Category.aspx?cid=25](http://toshiba.elarabygroup.com/Category.aspx?cid=25)               80     

代码语言:javascript
复制
 images/Ad\_2.jpg     [http://toshiba.elarabygroup.com/Category.aspx?cid=27](http://toshiba.elarabygroup.com/Category.aspx?cid=27)               80        
代码语言:javascript
复制
 images/Ad\_3.jpg     [http://sharp.elarabygroup.com/ac/index.aspx](http://sharp.elarabygroup.com/ac/index.aspx)               80        
代码语言:javascript
复制
 images/Ad\_4.jpg     [http://sharp.elarabygroup.com/ha/ListView.aspx?Category\_Id=67](http://sharp.elarabygroup.com/ha/ListView.aspx?Category_Id=67)               80        
代码语言:javascript
复制
 images/Ad\_5.jpg     [http://sharp.elarabygroup.com/ha/ListView.aspx?Category\_Id=67](http://sharp.elarabygroup.com/ha/ListView.aspx?Category_Id=67)               80        
代码语言:javascript
复制
 images/Ad\_6.jpg     [http://sharp.elarabygroup.com/ha/ListView.aspx?ProductCategory\_Id=24](http://sharp.elarabygroup.com/ha/ListView.aspx?ProductCategory_Id=24)               80        
代码语言:javascript
复制
 images/Ad\_7.jpg                    80        
代码语言:javascript
复制
 images/Ad\_8.jpg     [http://sharp.elarabygroup.com/avs/Display.aspx?catID=38](http://sharp.elarabygroup.com/avs/Display.aspx?catID=38) &amp catName=X-Slim &amp selSub=38               80        
代码语言:javascript
复制
 images/Ad\_9.jpg     [http://toshiba.elarabygroup.com/Category.aspx?cid=19](http://toshiba.elarabygroup.com/Category.aspx?cid=19)               80        
代码语言:javascript
复制
 images/Ad\_10.jpg     [http://sharp.elarabygroup.com/ac/ACProductList.aspx?Id=3](http://sharp.elarabygroup.com/ac/ACProductList.aspx?Id=3)               80        
代码语言:javascript
复制
 images/Ad\_11.jpg     [http://toshiba.elarabygroup.com/Category.aspx?cid=22](http://toshiba.elarabygroup.com/Category.aspx?cid=22)               80
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-09-16 19:58:18

您必须以这样的方式创建XML文件

代码语言:javascript
复制
<Advertisements>
 <Ad>
<ImageUrl>~/Images/image1.jpg</ImageUrl>
<height>60</height>
<width>190</width>
<NavigateUrl>http://www.microsoft.com</NavigateUrl>
  <AlternateText>Microsoft Main Site</AlternateText>
  <Impressions>80</Impressions>
  <Keyword>Topic1</Keyword>
  </Ad>
  <Ad>
  <ImageUrl>~/Images/image2.jpg</ImageUrl>
<height>90</height>
<width>90</width>
    <NavigateUrl>http://www.wingtiptoys.com</NavigateUrl>
  <AlternateText>Wingtip Toys</AlternateText>
  <Impressions>80</Impressions>
  <Keyword>Topic2</Keyword>
</Ad>
 </Advertisements>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3726361

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档