473,387 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to use adrotator

Hi, I dragged adrotator from toolbox to the page, then I saved a xml file
(ad.xml) using following content,

<advertisements>
<Ad>
<ImageUrl>1.JPG</ImageUrl>
<NavigateUrl>http://localhost/webproject2</NavigateUrl>
<AlternateText> Home</AlternateText>
<Impressions>80</Impressions>
<Keyword>Topic1</Keyword>
</Ad>
</advertisements>
under property, I mapped advertisementfile to ad.xml, but when I compile
and run, I got an error
Do you have any ideas what I did wrong?

Server Error in '/WebProject2' Application.
----------------------------------------------------------------------------
----

The AdRotator AdRotator1 found no valid advertisements in the file 'ad.xml'.


Nov 18 '05 #1
2 2393
Britney wrote:
Hi, I dragged adrotator from toolbox to the page, then I saved a xml file
(ad.xml) using following content,

<advertisements>
<Ad>
<ImageUrl>1.JPG</ImageUrl>
<NavigateUrl>http://localhost/webproject2</NavigateUrl>
<AlternateText> Home</AlternateText>
<Impressions>80</Impressions>
<Keyword>Topic1</Keyword>
</Ad>
</advertisements>
under property, I mapped advertisementfile to ad.xml, but when I compile
and run, I got an error
Do you have any ideas what I did wrong?

Server Error in '/WebProject2' Application.
----------------------------------------------------------------------------
----

The AdRotator AdRotator1 found no valid advertisements in the file 'ad.xml'.

Is the encoding of the xml file right (UTF-8).
To check the xml file for errors simply open it with IE. If it shows up
till the end, the xml is fine. If so... is the path to the xml file correct?

--

//Rutger

DoDotNet@KICKTHIS_Gmail.com
www.RutgerSmit.com
Nov 18 '05 #2
Britney wrote:
Hi, I dragged adrotator from toolbox to the page, then I saved a xml file
(ad.xml) using following content,

<advertisements>
<Ad>
<ImageUrl>1.JPG</ImageUrl>
<NavigateUrl>http://localhost/webproject2</NavigateUrl>
<AlternateText> Home</AlternateText>
<Impressions>80</Impressions>
<Keyword>Topic1</Keyword>
</Ad>
</advertisements>
under property, I mapped advertisementfile to ad.xml, but when I compile
and run, I got an error
Do you have any ideas what I did wrong?

Server Error in '/WebProject2' Application.
----------------------------------------------------------------------------
----

The AdRotator AdRotator1 found no valid advertisements in the file 'ad.xml'.


I see, do advertisements with a capital A.
That's how MSDN tells us to do it.

http://msdn.microsoft.com/library/en...asp?frame=true

<Advertisements>

<Ad>
<ImageUrl>image1.jpg</ImageUrl>
<NavigateUrl>http://www.microsoft.com</NavigateUrl>
<AlternateText>Microsoft Main Site</AlternateText>
<Impressions>80</Impressions>
<Keyword>Topic1</Keyword>
</Ad>

<Ad>
<ImageUrl>image2.jpg</ImageUrl>
<NavigateUrl>http://www.wingtiptoys.com</NavigateUrl>
<AlternateText>Wing Tip Toys</AlternateText>
<Impressions>80</Impressions>
<Keyword>Topic2</Keyword>
</Ad>

</Advertisements>
--

//Rutger

DoDotNet@KICKTHIS_Gmail.com
www.RutgerSmit.com
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kdmath | last post by:
I want to use the AdRotator control to dispay pay per click ads in the banner. I am able to use the AdRotator control for other links but when I use the code that the pay per click ads say to...
10
by: Apostolis K. | last post by:
I include an AdRotator component but the component doesn't rotate the ads _index.asp_ <% Set objAd=Server.CreateObject("MSWC.AdRotator") vAdRotation=objAd.GetAdvertisement("ads.txt") ...
5
by: Erica | last post by:
My images in Adrotator are not displaying. The ALT tag only displays. My text file looks like this: redirect redirect.asp border 0 height 115 width 215 * /images/awards.swf...
0
by: Erica | last post by:
Hopefully someone can offer me a workaround to this problem: I am using adRotator to rotate some reminders on my intranet site. I have a redirect page name redirect.asp that recieves the...
0
by: Kiran R | last post by:
Hi, Is there any way to show different advertisements(images) in a certain interval of time using AdRotator. I am able to display different images when the page get refreshed using AdRotator....
1
by: clintonG | last post by:
After months of stable operation the AdRotator has become unstable. Maybe its the Themes or the MasterPage who knows? The AdRotator is showing the images from Theme 1 when Theme 2 is selected...
5
by: Dan | last post by:
Hi, I created an AdRotator control with this code: <asp:AdRotator id="AdRotator1" Runat="Server" AdvertisementFile="adrotator.xml"> </asp:AdRotator> The xml file contains: <Advertisements>...
7
by: Aussie Rules | last post by:
Hi, I have a adrotator control on a page, and want to program the connection of the control via SQL. I have the following code which doesn't seem to do much, and not sure what else to do? ...
1
by: Aussie Rules | last post by:
Hi, I have a few adrotators on a page, each bound to a sql dataset from my database The function works fine, but as we are going to charge for the advertising impression and click throughs I...
0
by: MC | last post by:
I have coded an AdRotator to use a Database for it's data source. If I use a SqlDataSource control it functions as expected, however if I manually retreive the data using an OleDBDataReader It...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.