I have a div within an aspx page with overflow set to auto. The contents of the div are dynamically created and consists of a list of link buttons.
<div id="div1" style="overflow: auto; height: 100%;">
.....
</div>
When I scoll down in the div and click on any of the link buttons, the page reload loses the scroll position inside the div and takes me to the top of the div. Is there any way to prevent that?
Note that this is for a div inside the page. Page.MaintainScrollPositionOnPostBack()
does not work.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…