Keep page position on postback

前端 未结 2 454
梦毁少年i
梦毁少年i 2020-12-30 10:15

Hi guys are working on this project for school and have a problem

    

        
2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-30 10:19

    You can set the MaintainScrollPositionOnPostback property on your page:

    Page.MaintainScrollPositionOnPostback = true;
    

    or put it in the page declaration

    <%@ Page MaintainScrollPositionOnPostback="true" %> 
    

提交回复
热议问题