Posted on: 9/19/2013 4:40:22 AM | Views : 224

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" />&nbsp; </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 ...