set scroll position

2 posts, 0 answers
  1. Harry
    Harry avatar
    27 posts
    Member since:
    Mar 2009

    Posted 07 Oct 2009 Link to this post

    I've a web form. In this I have TimeTicker in update panel.. if i scroll   down it. the scroll position is not same. It's at the begining of the page. My requirement is I want to set the scroll position to the same position where it was before.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 07 Oct 2009 Link to this post

    Hello Harry,

    Try setting the MaintainScrollPositionOnPostback attribute to true in the page directive of your web page as shown below and see if it helps:
    <%@ Page Language="C#" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 

Back to Top