Click here to Skip to main content
11,932,402 members (54,120 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET .NET
I am using update panel,timer and trigger to show top 5 songs of the week one by one but due to the Timer_Tick event of the trigger the whole web page is not working fine means when I slide the scroller down it automatically comes up means the page is getting refreshed and due to which scroller automatically comes to its initial position.I am writing the code below.Please give any suggestion where I'm going wrong.
Thanx in advance.

  <asp:Timer ID="Timer1" runat="server" Interval="2000" OnTick="Timer1_Tick">
 <asp:ScriptManager ID="ScriptManager1" runat="server">
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
           <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
 <div style="width: 8em; height: 6em; margin-removed 1em; margin-removed 5em; margin-removed 1em;">
 <asp:ImageButton ID="imgbtn1" runat="server" Height="81px" ImageUrl="~/images/img1.jpg"
 Width="88px" />
 <div style  ="width: 15em; height: auto; margin-removed 0.5em; margin-removed 4.5em;">
 <asp:HyperLink ID="hyperlinkfirstName" runat="server" ForeColor="Maroon" NavigateUrl='<%#"~/Tutor_Profile.aspx?Tutor_User_Id=" + Eval("User_Id")%>'></asp:HyperLink>
<asp:HyperLink ID="hyperlinklastname" runat="server" ForeColor="Maroon" NavigateUrl='<%#"~/Tutor_Profile.aspx?Tutor_User_Id=" + Eval("User_Id")%>'>

Posted 28-Mar-13 21:49pm
hemantrautela 29-Mar-13 3:27am
Put timer tag also in update panel & which songs to show on timer event also put in update panel......
jackson kumar 29-Mar-13 4:04am
but sir timer tag doesn't work in Update panel
hemantrautela 29-Mar-13 4:08am
I already work timer within update panel see my blog it is working code...
Sarvesh Kushwaha 29-Mar-13 3:30am
control your time from causing post .. put it in update panel as well ..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 29 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100