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:

MaintainScrollPositionOnPostback="true"

on the top of my aspx page

but it won't work, for that, does anyone have any other ideas?

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.

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

Any other ideas? :-D

you are using update panel, which adds javascript :

i copied these from your webpage :

<script src="/ScriptResource.axd?d=mSjW9JANqbhCsElyz1V52TzyOvpnaCOJPu_mzsHkeJ8DDzPS6SIawxkro_B_SxotuXAhSxWMXllh4TesVL_AWLEy24GteHVc0IhLWKzMqac1&amp;t=633662346476406250" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>

<script src="/ScriptResource.axd?d=mSjW9JANqbhCsElyz1V52TzyOvpnaCOJPu_mzsHkeJ8DDzPS6SIawxkro_B_Sxot0IS9s2FTzIVg00RLpWcPxt20mgd445hoHumqpsWl8mY0GlAXaUwVS28hiAicJsI40&amp;t=633662346476406250" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=mSjW9JANqbhCsElyz1V52TzyOvpnaCOJPu_mzsHkeJ8DDzPS6SIawxkro_B_SxotVex1U7VHZFN6DKJ5mmf-Kw2s8QtzSwncEP7EThtX2N41&amp;t=633662346476406250" type="text/javascript"></script>
   
  <a href="Default.aspx"> <div class="top"></div></a>
   
      
        
        
  
    <span id="menu"><a href="default.aspx">Forside</a></span>
    <span id="menu"><a href="udsendelser.aspx">Udsendelser</a></span>
    <span id="menu"><a href="http://83.133.64.106:8000/listen.pls">Netradio</a></span>
    <span id="menu"><a href="venner.aspx">Radio Jazz Venner</a></span>
    <span id="menu"><a href="omradiojazz.aspx">Om Radio Jazz</a></span>    
    <span id="menu"><a href="links.aspx">Links</a></span>
    <span class="dato_master">

<span id="ctl00_date">23. februar 2009</span> 


</span>
    <span class="ur">

  <span id="ctl00_lblcurrenttime">06:19:05</span>
        </span>
   
    
        
        
        
    

    
   
    <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$UpdatePanel1'], [], [], 90);
//]]>
</script>

<div id="ctl00_UpdatePanel1">
	
<span id="ctl00_Timer1" style="visibility:hidden;display:none;"></span>

try to remove update panels, script manager from your webpage, you will see the scroll issue resolved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.