Click here to Skip to main content
Rate this: bad
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")%>'></asp:HyperLink>
 <div style="width: 14em; height: auto; margin-top: 0.5em; margin-left: 1em; float: none;
 margin-right: 0.5em;">
<asp:Label ID="lblsubjects" runat="server" ForeColor="Black"></asp:Label>
<pre lang="HTML">
Posted 28-Mar-13 21:49pm
(unknown member)
hemantrautela at 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 at 29-Mar-13 4:04am
but sir timer tag doesn't work in Update panel
hemantrautela at 29-Mar-13 4:08am
I already work timer within update panel see my blog it is working code...
Sarvesh Kushwaha at 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
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 130
4 DamithSL 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310

Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 29 Mar 2013
Copyright © CodeProject, 1999-2014
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