开发者

Error when using adrotator to display ads

开发者 https://www.devze.com 2023-01-16 04:41 出处:网络
I had AdRotator control to display some Banners in my site but I got an error (AdvertisementFile not found). I checked my code and found that everything was as it should be. Please any one help me.

I had AdRotator control to display some Banners in my site but I got an error (AdvertisementFile not found). I checked my code and found that everything was as it should be. Please any one help me.

images/Ad_1.jpg http://toshiba.elarabygroup.com/Category.aspx?cid=25 80

images/Ad_2.jpg http://toshiba.elarabygroup.com/Category.aspx?cid=27 80

images/Ad_3.jpg http://sharp.elarabygroup.com/ac/index.aspx 80

images/Ad_4.jpg http://sharp.elarabygroup.com/ha/ListView.aspx?Category_Id=67 80

images/Ad_5.jpg http开发者_Go百科://sharp.elarabygroup.com/ha/ListView.aspx?Category_Id=67 80

images/Ad_6.jpg 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 &amp catName=X-Slim &amp selSub=38 80

images/Ad_9.jpg http://toshiba.elarabygroup.com/Category.aspx?cid=19 80

images/Ad_10.jpg http://sharp.elarabygroup.com/ac/ACProductList.aspx?Id=3 80

images/Ad_11.jpg http://toshiba.elarabygroup.com/Category.aspx?cid=22 80


You have to create your XML file in such a way that

<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

精彩评论

暂无评论...
验证码 换一张
取 消