ATLAS UpdatePanel + AdRotator + ATLAS Timer Control

One good use of the ATLAS UpdatePanel control and the Timer control is that you can change the Ads displayed by the AdRotator control without doing the POSTBACK. The best thing is that it is pretty simple. Check out the following code:

<form id="form1" runat="server">
        
        <div>
        
        <atlas:ScriptManager ID="sm1" runat="server"
        EnablePartialRendering="true" />        
        
       <atlas:TimerControl ID="tm1" runat="server" Enabled="true"
       Interval="5000">
        </atlas:TimerControl>
        
        <atlas:UpdatePanel ID="up1" runat="server"> 
        <ContentTemplate>
         <asp:AdRotator ID="ar1" runat="server" AdvertisementFile="~/MyAds.xml"
         />
        </ContentTemplate>        
        </atlas:UpdatePanel>               
        
        </div>
    </form>

The file MyAds.xml contains the description about the ads.

powered by IMHO 1.3

Print | posted @ Saturday, May 13, 2006 11:47 PM

Twitter