Hi Friends,
I have added an auto changing banner in my aspx page with timer control. The following is my code
aspx
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:Timer ID="Timer1" OnTick="Timer1_Tick" runat="server" Interval="3000" />
<asp:UpdatePanel ID="BannerPanel" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" />
</Triggers>
<ContentTemplate>
<asp:Image ID="BannerImage" runat="server" ImageUrl="~/banners/banner_1.gif" />
</ContentTemplate>
</asp:UpdatePanel>
C# code
protected void Timer1_Tick(object sender, EventArgs e)
{
Random RandomClass = new Random();
int n = RandomClass. ...
Go to the complete details ...