Hello, When page refreshes due to time trigger, page focuses on that updated page portion, which is annoying. Please see this behavior here: (scroll page and you will be redirected to the same "Also Available On" section, I don’t want that): http://www.usmaniacomplex.com/Downloads/UCL_1_0.aspx and http://www.usmaniacomplex.com/Downloads/UKM_1_0.aspx .
Code:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
// Comments panel
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:AdRotator ID="AdRotator1" runat="server" Target="_self" DataSourceID="XmlDataSource1" />
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/some.xml"></asp:XmlDataSource>
<asp:Timer ID="Timer1" runat="server" Interval="2000"></asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
See if this helps you: http://forums.asp.net/t/1156877.aspx
http://forums.asp.net/t/1513472.aspx
Specifically the post with this snippet:
<script type="text/javascript"> var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_beginRequest(beginRequest);
function beginRequest() { prm._scrollPosition = null; } < /script>
http://aspnet.4guysfromrolla.com/articles/111704-1.aspx
<pages smartNavigation="true"MaintainScrollPositionOnPostback="true"/>
http://basgun.wordpress.com/2008/06/09/maintain-scroll-position-updatepanel-postback/