How to maintain scroll position on autopostback?

前端 未结 12 1752
臣服心动
臣服心动 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:21

    Best solution for me, was to wrap the problematic controls with an update panel

    
    
    dropdown controls that cause postback etc..
    
    
    

    ofcourse, you also need the

    
    

    to be present inside the main form of the site.

提交回复
热议问题