本文介绍了图像未在adrotator中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



我被adrotator困住了,虽然我已成功设法在网站上使用adrotator但问题是我的图片是空白的并且没有得到显示你们可以告诉我我犯错的原因吗?

以下是我的代码:



hello friends,

I am stuck with adrotator, though i have successfully managed to use adrotator in website but problem is that my image is blank and is not getting displayed can u guys suggest me reason where i am making mistake ?
Below is my code :

<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
  <Ad>
    <ImageUrl>~/images/google-hummingbird.jpg</ImageUrl>
    <NavigateUrl>http://google.com</NavigateUrl>
    <AlternateText>Please visit http://www.Google.com</AlternateText>
    <Impressions>10</Impressions>
    <Keyword>Google</Keyword>
  </Ad>

  <Ad>
    <ImageUrl>~/images/images.jpg</ImageUrl>
    <NavigateUrl>http://youtube.com</NavigateUrl>
    <AlternateText>Please visit http://www.youtube.com</AlternateText>
    <Impressions>10</Impressions>
    <Keyword>Youtube</Keyword>
  </Ad>

  <Ad>
    <ImageUrl>~/images/images2.jpg</ImageUrl>
    <NavigateUrl>http://yahoo.com</NavigateUrl>
    <AlternateText>Please visit http://www.yahoo.com</AlternateText>
    <Impressions>10</Impressions>
    <Keyword>Yahoo</Keyword>
  </Ad>
</Advertisements>







<asp:AdRotator ID="AdRotator1" runat="server"
                            AdvertisementFile="~/adsdata.xml" />

推荐答案


这篇关于图像未在adrotator中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-23 04:23