Hi,
I created an AdRotator control with this code:
<asp:AdRotato r id="AdRotator1 "
Runat="Server" AdvertisementFi le="adrotator.x ml">
</asp:AdRotator>
The xml file contains:
<Advertisements >
<Ad>
<ImageUrl>image s/pic1.png</ImageUrl>
<NavigateUrl>ht tp://www.cocacola.us </NavigateUrl>
<AlternateText> Coca Cola</AlternateText>
<Keyword>coca </Keyword>
<Impressions>50 </Impressions>
</Ad>
<Ad>
<ImageUrl>image s/pic2png</ImageUrl>
<NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl>
<AlternateText> Alfa Romeo</AlternateText>
<Keyword>alfa </Keyword>
<Impressions>50 </Impressions>
</Ad>
</Advertisements>
When running, i see the first advertising, but the second advertising never
appears. Do i need some codebehind code to switch from advertisings or it
must happen automatically?
Thanks
Dan 5 3124
Howdy,
<Advertisemen ts
xmlns="http://schemas.microso ft.com/AspNet/AdRotator-Advertisement-File-1.2">
<Ad>
<ImageUrl>~/Images/pic1.png</ImageUrl>
<NavigateUrl>ht tp://www.cocacola.us </NavigateUrl>
<AlternateText> Coca Cola</AlternateText>
<Keyword>coca </Keyword>
<Impressions>50 </Impressions>
</Ad>
<Ad>
<ImageUrl>~/Images/pic2.png</ImageUrl>
<NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl>
<AlternateText> Alfa Romeo</AlternateText>
<Keyword>alfa </Keyword>
<Impressions>50 </Impressions>
</Ad>
</Advertisements>
It should work, try to refresh the page few times and see if the image
changes.
hope this helps
--
Milosz
"Dan" wrote:
Hi,
I created an AdRotator control with this code:
<asp:AdRotato r id="AdRotator1 "
Runat="Server" AdvertisementFi le="adrotator.x ml">
</asp:AdRotator>
The xml file contains:
<Advertisements >
<Ad>
<ImageUrl>image s/pic1.png</ImageUrl>
<NavigateUrl>ht tp://www.cocacola.us </NavigateUrl>
<AlternateText> Coca Cola</AlternateText>
<Keyword>coca </Keyword>
<Impressions>50 </Impressions>
</Ad>
<Ad>
<ImageUrl>image s/pic2png</ImageUrl>
<NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl>
<AlternateText> Alfa Romeo</AlternateText>
<Keyword>alfa </Keyword>
<Impressions>50 </Impressions>
</Ad>
</Advertisements>
When running, i see the first advertising, but the second advertising never
appears. Do i need some codebehind code to switch from advertisings or it
must happen automatically?
Thanks
Dan
Hi Milosz,
thanks for replying .. but i think there is a little misunderstandin g ...
When i refresh my page, the advertising also changes.That's not the problem.
I thought the advertising would change by itself automatically.
Is it wrong and must the page each time be refreshed for switching between
advertisings?
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plschr eef in bericht
news:29******** *************** ***********@mic rosoft.com...
Howdy,
<Advertisemen ts
xmlns="http://schemas.microso ft.com/AspNet/AdRotator-Advertisement-File-1.2">
<Ad>
<ImageUrl>~/Images/pic1.png</ImageUrl>
<NavigateUrl>ht tp://www.cocacola.us </NavigateUrl>
<AlternateText> Coca Cola</AlternateText>
<Keyword>coca </Keyword>
<Impressions>50 </Impressions>
</Ad>
<Ad>
<ImageUrl>~/Images/pic2.png</ImageUrl>
<NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl>
<AlternateText> Alfa Romeo</AlternateText>
<Keyword>alfa </Keyword>
<Impressions>50 </Impressions>
</Ad>
</Advertisements>
It should work, try to refresh the page few times and see if the image
changes.
hope this helps
--
Milosz
"Dan" wrote:
>Hi,
I created an AdRotator control with this code: <asp:AdRotato r id="AdRotator1 " Runat="Server" AdvertisementFi le="adrotator.x ml"> </asp:AdRotator>
The xml file contains: <Advertisement s> <Ad> <ImageUrl>image s/pic1.png</ImageUrl> <NavigateUrl>ht tp://www.cocacola.us </NavigateUrl> <AlternateText> Coca Cola</AlternateText> <Keyword>coca </Keyword> <Impressions>50 </Impressions> </Ad> <Ad> <ImageUrl>image s/pic2png</ImageUrl> <NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl> <AlternateText> Alfa Romeo</AlternateText> <Keyword>alfa </Keyword> <Impressions>50 </Impressions> </Ad> </Advertisements>
When running, i see the first advertising, but the second advertising never appears. Do i need some codebehind code to switch from advertisings or it must happen automatically?
Thanks Dan
Howdy,
It's just the way how it works (it requires a postback). You can find some
nice resolutions to this limitation (i.e. if you use MS AJAX put adrotator
inside an UpdatePanel). Anyway, it would involve javascript coding, for
instance: http://www.brettb.com/js_banner_ad_rotator.asp
Hope this helps
--
Milosz
"Dan" wrote:
Hi Milosz,
thanks for replying .. but i think there is a little misunderstandin g ...
When i refresh my page, the advertising also changes.That's not the problem.
I thought the advertising would change by itself automatically.
Is it wrong and must the page each time be refreshed for switching between
advertisings?
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plschr eef in bericht
news:29******** *************** ***********@mic rosoft.com...
Howdy,
<Advertisemen ts
xmlns="http://schemas.microso ft.com/AspNet/AdRotator-Advertisement-File-1.2">
<Ad>
<ImageUrl>~/Images/pic1.png</ImageUrl>
<NavigateUrl>ht tp://www.cocacola.us </NavigateUrl>
<AlternateText> Coca Cola</AlternateText>
<Keyword>coca </Keyword>
<Impressions>50 </Impressions>
</Ad>
<Ad>
<ImageUrl>~/Images/pic2.png</ImageUrl>
<NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl>
<AlternateText> Alfa Romeo</AlternateText>
<Keyword>alfa </Keyword>
<Impressions>50 </Impressions>
</Ad>
</Advertisements>
It should work, try to refresh the page few times and see if the image
changes.
hope this helps
--
Milosz
"Dan" wrote:
Hi,
I created an AdRotator control with this code:
<asp:AdRotato r id="AdRotator1 "
Runat="Server" AdvertisementFi le="adrotator.x ml">
</asp:AdRotator>
The xml file contains:
<Advertisements >
<Ad>
<ImageUrl>image s/pic1.png</ImageUrl>
<NavigateUrl>ht tp://www.cocacola.us </NavigateUrl>
<AlternateText> Coca Cola</AlternateText>
<Keyword>coca </Keyword>
<Impressions>50 </Impressions>
</Ad>
<Ad>
<ImageUrl>image s/pic2png</ImageUrl>
<NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl>
<AlternateText> Alfa Romeo</AlternateText>
<Keyword>alfa </Keyword>
<Impressions>50 </Impressions>
</Ad>
</Advertisements>
When running, i see the first advertising, but the second advertising
never
appears. Do i need some codebehind code to switch from advertisings or it
must happen automatically?
Thanks
Dan
That's correct. The AdRotator is designed to pull one item at random from
the datasource. It doesn't pull them all and then iterate through them
client-side. There are third-party rotator controls that can do it.
r.a.d.Rotator from www.telerik.com is an excellent control that can work
this client-side.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Dan" <dd*@sdf.sdfwro te in message
news:%2******** **********@TK2M SFTNGP06.phx.gb l...
Hi Milosz,
thanks for replying .. but i think there is a little misunderstandin g ...
When i refresh my page, the advertising also changes.That's not the
problem.
I thought the advertising would change by itself automatically.
Is it wrong and must the page each time be refreshed for switching between
advertisings?
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plschr eef in bericht
news:29******** *************** ***********@mic rosoft.com...
>Howdy,
<Advertisement s xmlns="http://schemas.microso ft.com/AspNet/AdRotator-Advertisement-File-1.2"> <Ad> <ImageUrl>~/Images/pic1.png</ImageUrl> <NavigateUrl>h ttp://www.cocacola.us </NavigateUrl> <AlternateText >Coca Cola</AlternateText> <Keyword>coc a</Keyword> <Impressions>5 0</Impressions> </Ad> <Ad> <ImageUrl>~/Images/pic2.png</ImageUrl> <NavigateUrl>h ttp://www.alfaromeo.u s</NavigateUrl> <AlternateText >Alfa Romeo</AlternateText> <Keyword>alf a</Keyword> <Impressions>5 0</Impressions> </Ad> </Advertisements>
It should work, try to refresh the page few times and see if the image changes.
hope this helps
-- Milosz
"Dan" wrote:
>>Hi,
I created an AdRotator control with this code: <asp:AdRotato r id="AdRotator1 " Runat="Server" AdvertisementFi le="adrotator.x ml"> </asp:AdRotator>
The xml file contains: <Advertisemen ts> <Ad> <ImageUrl>image s/pic1.png</ImageUrl> <NavigateUrl>ht tp://www.cocacola.us </NavigateUrl> <AlternateText> Coca Cola</AlternateText> <Keyword>coca </Keyword> <Impressions>50 </Impressions> </Ad> <Ad> <ImageUrl>image s/pic2png</ImageUrl> <NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl> <AlternateText> Alfa Romeo</AlternateText> <Keyword>alfa </Keyword> <Impressions>50 </Impressions> </Ad> </Advertisements>
When running, i see the first advertising, but the second advertising never appears. Do i need some codebehind code to switch from advertisings or it must happen automatically?
Thanks Dan
Thanks again
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plschr eef in bericht
news:F3******** *************** ***********@mic rosoft.com...
Howdy,
It's just the way how it works (it requires a postback). You can find some
nice resolutions to this limitation (i.e. if you use MS AJAX put adrotator
inside an UpdatePanel). Anyway, it would involve javascript coding, for
instance: http://www.brettb.com/js_banner_ad_rotator.asp
Hope this helps
--
Milosz
"Dan" wrote:
>Hi Milosz,
thanks for replying .. but i think there is a little misunderstandin g ... When i refresh my page, the advertising also changes.That's not the problem. I thought the advertising would change by itself automatically. Is it wrong and must the page each time be refreshed for switching between advertisings ?
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plschr eef in bericht news:29******* *************** ************@mi crosoft.com...
Howdy,
<Advertisemen ts
xmlns="http://schemas.microso ft.com/AspNet/AdRotator-Advertisement-File-1.2">
<Ad>
<ImageUrl>~/Images/pic1.png</ImageUrl>
<NavigateUrl>ht tp://www.cocacola.us </NavigateUrl>
<AlternateText> Coca Cola</AlternateText>
<Keyword>coca </Keyword>
<Impressions>50 </Impressions>
</Ad>
<Ad>
<ImageUrl>~/Images/pic2.png</ImageUrl>
<NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl>
<AlternateText> Alfa Romeo</AlternateText>
<Keyword>alfa </Keyword>
<Impressions>50 </Impressions>
</Ad>
</Advertisements>
It should work, try to refresh the page few times and see if the image
changes.
hope this helps
--
Milosz
"Dan" wrote:
Hi,
I created an AdRotator control with this code: <asp:AdRotato r id="AdRotator1 " Runat="Server" AdvertisementFi le="adrotator.x ml"> </asp:AdRotator>
The xml file contains: <Advertisement s> <Ad> <ImageUrl>image s/pic1.png</ImageUrl> <NavigateUrl>ht tp://www.cocacola.us </NavigateUrl> <AlternateText> Coca Cola</AlternateText> <Keyword>coca </Keyword> <Impressions>50 </Impressions> </Ad> <Ad> <ImageUrl>image s/pic2png</ImageUrl> <NavigateUrl>ht tp://www.alfaromeo.u s</NavigateUrl> <AlternateText> Alfa Romeo</AlternateText> <Keyword>alfa </Keyword> <Impressions>50 </Impressions> </Ad> </Advertisements>
When running, i see the first advertising, but the second advertising never appears. Do i need some codebehind code to switch from advertisings or it must happen automatically?
Thanks Dan
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 insert in to the page, the link
code that tracks the clicks does not work. Surely there is
a way to use this control for these ads. Any help would be
apriciated.
Thanks,
kdmath
|
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
http://www.starone-intranet.com/main.asp
|
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 querystring variable, 'url'
and redirects the user to that page. One of the reminders should be
redirected to a url that contains query strings itself. The url passes in the
string up to the first '&'. What should I do. Here is the code on the page...
|
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.
But...Is there any way to change the images without refreshing the page
using AdRotator or by using any other controls?
|
by: Leon |
last post by:
How to display flash banners using the built-in .net AdRotator control? Do I
have to extend the existing AdRotator control? if so than how?
If you know of any books or website that explain the above please include
that information in your response
..
Thanks
| |
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
and loaded.
I have a very simple implementation...
// Declared in MasterPage
<div id="LogoCubes">
|
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?
Dim SQLServerConnection As SqlConnection
Dim SqlConnectionCls As New clsSQL
|
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 would like to be able to capture details
about what add is displayed.
The image name the adrotator is using would be good enough, but what would
|
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 always omits the
first item in the result set? Code for each solution as below.
The reason I'm don't want to use the Declarative solution is that I
intend to Create a custom control that inherits from AdRotator and I
would then need to retrieve the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |