J
JezB
There are a few references on the net about how to restore a page's scroll
position over a postback. This is a simple one which works for me:
eg. http://www.devhood.com/messages/message_view-2.aspx?thread_id=104625
My question is : can the same thing be done to restore the scroll position
of a specific DIV within a page? I have a DIV section which scrolls
independently to the page :
<div style="vertical-align: top; height:200px; width:100%; overflow:auto;">
<aspataGrid runat="server" ...>
...
</aspataGrid>
</div>
On each postback it is scrolling back to the top. Very annoying to the user
if it's a click within the scroll area that causes the postback.
Could someone tell me how? My knowledge of javascript is almost zero.
position over a postback. This is a simple one which works for me:
eg. http://www.devhood.com/messages/message_view-2.aspx?thread_id=104625
My question is : can the same thing be done to restore the scroll position
of a specific DIV within a page? I have a DIV section which scrolls
independently to the page :
<div style="vertical-align: top; height:200px; width:100%; overflow:auto;">
<aspataGrid runat="server" ...>
...
</aspataGrid>
</div>
On each postback it is scrolling back to the top. Very annoying to the user
if it's a click within the scroll area that causes the postback.
Could someone tell me how? My knowledge of javascript is almost zero.