How to maintain scroll position on autopostback?

前端 未结 12 1699
臣服心动
臣服心动 2020-12-30 21:49

How can I get back to the same position of a page on postback. It always seems to get to the top of the page.

I\'ve tried using maintainSc

12条回答
  •  时光取名叫无心
    2020-12-30 22:23

    Make sure, that you do not set default button in

    . Remove defaultbutton="YourDefaultButton" and MaintainScrollPositionOnPostback="true" will work.

提交回复
热议问题