Saturday, September 21, 2013

AD Rotator with timer

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<asp:Timer ID="Timer2" runat="server" Interval="1000">
</asp:Timer>

<asp:UpdatePanel ID="UpdatePanel2" runat="server">

<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" />
</Triggers>

<ContentTemplate>

<asp:AdRotator ID="AdRotator2" runat="server" DataSourceID="XmlDataSource2" />
<asp:XmlDataSource ID="XmlDataSource2" runat="server" DataFile="~/XMLFile2.xml">
</asp:XmlDataSource>

</ContentTemplate>

</asp:UpdatePanel>

</form>

No comments: