This is a migrated thread and some comments may be shown as answers.

set scroll position

1 Answer 41 Views
Input
This is a migrated thread and some comments may be shown as answers.
Harry
Top achievements
Rank 1
Harry asked on 07 Oct 2009, 10:11 AM
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.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Oct 2009, 11:35 AM
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:
aspx:
<%@ Page Language="C#" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 

Thanks
Princy.
Tags
Input
Asked by
Harry
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or