1,105,578 Community Members

Hoe to apply slide show to Adrotator?

Member Avatar
kiran2010
Newbie Poster
2 posts since Mar 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Adrotator provides change of advertisements on refreshing the page.. Can anyone tell me how can we change it during the page execution ..I mean can ad change without loading the page???
Please do reply if you are aware of it..
thnx in advance

Member Avatar
__avd
Posting Genius (adatapost)
6,703 posts since Oct 2008
Reputation Points: 1,811 [?]
Q&As Helped to Solve: 1,272 [?]
Skill Endorsements: 61 [?]
Moderator
 
0
 

Drop "AdRotator" into UpdatePanel and (Use Ajax Extension) handle the Timer's event.

Member Avatar
riteshbest
Light Poster
34 posts since Nov 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 

Well... You need to put AdRotator control into Update Panel. Trigger update panel on timer tick event.

Please check below example for more details:

<form id="frmAdRotator" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:Timer runat="server" id="UpdateTimer" interval="5000" ontick="UpdateTimer_Tick" />
        <asp:UpdatePanel runat="server" id="TimedPanel" updatemode="Conditional">
            <Triggers>
                <asp:AsyncPostBackTrigger controlid="UpdateTimer" eventname="Tick" />
            </Triggers>
            <ContentTemplate>
                <asp:AdRotator ID="adRotator" runat="server" AdvertisementFile="~/File.xml" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: