943,809 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1581
  • ASP.NET RSS
Feb 19th, 2009
0

Scrollbar jumps uncontrollably

Expand Post »
Hi I have a scrollbar on my page with a lot of text. And sometimes when I start scrolling, it jumps up again.

You can see what I mean on: http://radiojazz.dk/udsendelser.aspx

I have tried to write:
ASP.NET Syntax (Toggle Plain Text)
  1. MaintainScrollPositionOnPostback="true"
on the top of my aspx page

but it won't work, for that, does anyone have any other ideas?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
kischi is offline Offline
62 posts
since Dec 2008
Feb 22nd, 2009
0

Re: Scrollbar jumps uncontrollably

i remember having a similar error last year when i made excessive use of ajax. such errors caused by javascript. try to remove unneccassary javascripts from your page, and if also remove ajax update panels and such.
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Feb 23rd, 2009
0

Re: Scrollbar jumps uncontrollably

I don't have any javascript or any ajax.
I only have C#

Any other ideas? :-D
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
kischi is offline Offline
62 posts
since Dec 2008
Feb 23rd, 2009
0

Re: Scrollbar jumps uncontrollably

you are using update panel, which adds javascript :

i copied these from your webpage :

ASP.NET Syntax (Toggle Plain Text)
  1. <script src="/ScriptResource.axd?d=mSjW9JANqbhCsElyz1V52TzyOvpnaCOJPu_mzsHkeJ8DDzPS6SIawxkro_B_SxotuXAhSxWMXllh4TesVL_AWLEy24GteHVc0IhLWKzMqac1&amp;t=633662346476406250" type="text/javascript"></script>
  2. <script type="text/javascript">
  3. //<![CDATA[
  4. if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
  5. //]]>
  6. </script>
  7.  
  8. <script src="/ScriptResource.axd?d=mSjW9JANqbhCsElyz1V52TzyOvpnaCOJPu_mzsHkeJ8DDzPS6SIawxkro_B_Sxot0IS9s2FTzIVg00RLpWcPxt20mgd445hoHumqpsWl8mY0GlAXaUwVS28hiAicJsI40&amp;t=633662346476406250" type="text/javascript"></script>
  9. <script src="/ScriptResource.axd?d=mSjW9JANqbhCsElyz1V52TzyOvpnaCOJPu_mzsHkeJ8DDzPS6SIawxkro_B_SxotVex1U7VHZFN6DKJ5mmf-Kw2s8QtzSwncEP7EThtX2N41&amp;t=633662346476406250" type="text/javascript"></script>
  10.  
  11. <a href="Default.aspx"> <div class="top"></div></a>
  12.  
  13.  
  14.  
  15.  
  16.  
  17. <span id="menu"><a href="default.aspx">Forside</a></span>
  18. <span id="menu"><a href="udsendelser.aspx">Udsendelser</a></span>
  19. <span id="menu"><a href="http://83.133.64.106:8000/listen.pls">Netradio</a></span>
  20. <span id="menu"><a href="venner.aspx">Radio Jazz Venner</a></span>
  21. <span id="menu"><a href="omradiojazz.aspx">Om Radio Jazz</a></span>
  22. <span id="menu"><a href="links.aspx">Links</a></span>
  23. <span class="dato_master">
  24.  
  25. <span id="ctl00_date">23. februar 2009</span>
  26.  
  27.  
  28. </span>
  29. <span class="ur">
  30.  
  31. <span id="ctl00_lblcurrenttime">06:19:05</span>
  32. </span>
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. <script type="text/javascript">
  43. //<![CDATA[
  44. Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', document.getElementById('aspnetForm'));
  45. Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$UpdatePanel1'], [], [], 90);
  46. //]]>
  47. </script>
  48.  
  49. <div id="ctl00_UpdatePanel1">
  50.  
  51. <span id="ctl00_Timer1" style="visibility:hidden;display:none;"></span>
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008
Feb 23rd, 2009
0

Re: Scrollbar jumps uncontrollably

try to remove update panels, script manager from your webpage, you will see the scroll issue resolved.
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: DIfferentiate Between Application("a") and Cookies("a")
Next Thread in ASP.NET Forum Timeline: signout image button problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC