Hi,
I'm trying to maintain the scroll position after I click the page number of a listview(populated using DataSource in CodeBehind, allowable Sort and Paging). The listview is in a web user control. I have tried MaintainScrollPositionOnPostback="true". I
also tried this script:
<script type="text/javascript">
var xPos, yPos;
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_beginRequest(BeginRequestHandler);
prm.add_endRequest(EndRequestHandler);
function BeginRequestHandler(sender, args) {
alert('begin');
xPos = $get('divMain').scrollLeft;
yPos = $get('divMain').scrollTop;
alert ...
Go to the complete details ...