...
function saveScrollPos(object)
{
document.getElementById('scrollPos').value = object.scrollTop;
}
function setScrollPos(elementId)
{
document.getElementById(elementId).scrollTop = document.getElementById('scrollPos').value;
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anders HundborgPosted Jul 5, 2009, 7:20 AM
Raghavendra UPosted May 22, 2009, 1:01 AM
Niradhip ChakrabortyPosted May 5, 2009, 8:42 AM
Add this code in pageload:
if you are using vs2005:
Page.MaintainScrollPositionOnPostBack = true;
if you are using vs2003:
Page.SmartNavigation = true;