Maintain scroller position on Div after page postback (ASP.NET)

后端 未结 6 1019
执念已碎
执念已碎 2021-01-05 05:30

I have a div as such:

I contains a few hundred records and allows me to select an i

6条回答
  •  星月不相逢
    2021-01-05 06:03

    ASP.NET has this built in all you need to do is include the MaintainScrollPositionOnPostback in your page directive.

    <%@ Page Language="C#" MaintainScrollPositionOnPostback="true" %>
    

提交回复
热议问题