Reset scroll position after Async postback - ASP.NET

前端 未结 8 1411
花落未央
花落未央 2020-11-30 06:08

What is the best way to reset the scroll position to the top of page after the an asynchronous postback?

The asynchronous postback is initiated from a ASP.NET Grid

8条回答
  •  暖寄归人
    2020-11-30 06:57

    Have you set the page property MaintainScrollPosition? Not sure if that would be any different if you do an Async Postback or not.

    Edit: One thing you could attempt is to set focus on a particular item near the top of your page, that may help and be a dirty work around.

提交回复
热议问题