I used the following piece of code in the web.config in order to maintain the scrollbar position after a server postback:
For future reference:
The normal procedure is to write the following in the web.config file:
This will preserve the scroll bar position of all web pages.
If you have a scroll bar within a gridview (or div) then use the following script:
And the div must be as follows:
http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20