hey any one can help me to refresh ado rotqator with out refreshing the web page

Recommended Answers

All 3 Replies

rotator

Hi there Samjonz, I have been doing some research for you and found this page you will be interested in :

http://blogs.msdn.com/danmor/archive/2006/11/15/refresh-that-ad-without-refreshing-the-page-with-asp-net-ajax-and-adrotator-control.aspx

The key part is :

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate> 
<asp:Timer ID="TimerControl1" runat="server" Interval="5000"></asp:Timer> 
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/ads.xml" />
</ContentTemplate>
</asp:UpdatePanel>

Hope this helps you

The Update Panel is an AJAX control that removes the need to refresh the whole page with each postback in order to 'refresh' a part of the page. I.e. exactly what you need. you need the adrotator to refresh but not the entire page. The update Panel allows partial page refreshes. Hope this information is useful!

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.