我有AdRotator控件在我的网站上显示一些横幅,但我得到一个错误(AdvertisementFile找不到)。我检查了我的代码,发现一切都是正常的。请任何人帮帮我。
images/Ad\_1.jpg [http://toshiba.elarabygroup.com/Category.aspx?cid=25](http://toshiba.elarabygroup.com/Category.aspx?cid=25) 80
images/Ad\_2.jpg [http://toshiba.elarabygroup.com/Category.aspx?cid=27](http://toshiba.elarabygroup.com/Category.aspx?cid=27) 80 images/Ad\_3.jpg [http://sharp.elarabygroup.com/ac/index.aspx](http://sharp.elarabygroup.com/ac/index.aspx) 80 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 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 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 images/Ad\_7.jpg 80 images/Ad\_8.jpg [http://sharp.elarabygroup.com/avs/Display.aspx?catID=38](http://sharp.elarabygroup.com/avs/Display.aspx?catID=38) & catName=X-Slim & selSub=38 80 images/Ad\_9.jpg [http://toshiba.elarabygroup.com/Category.aspx?cid=19](http://toshiba.elarabygroup.com/Category.aspx?cid=19) 80 images/Ad\_10.jpg [http://sharp.elarabygroup.com/ac/ACProductList.aspx?Id=3](http://sharp.elarabygroup.com/ac/ACProductList.aspx?Id=3) 80 images/Ad\_11.jpg [http://toshiba.elarabygroup.com/Category.aspx?cid=22](http://toshiba.elarabygroup.com/Category.aspx?cid=22) 80发布于 2010-09-16 19:58:18
您必须以这样的方式创建XML文件
<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>https://stackoverflow.com/questions/3726361
复制相似问题