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

Recommended Answers

All 2 Replies

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

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>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.