We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Hoe to apply slide show to Adrotator?

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

3
Contributors
2
Replies
1 Day
Discussion Span
2 Years Ago
Last Updated
3
Views
kiran2010
Newbie Poster
2 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

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>
riteshbest
Light Poster
34 posts since Nov 2009
Reputation Points: 15
Solved Threads: 5
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0551 seconds using 2.63MB