Maintain horizontal and vertical ScrollPosition on Postback in ASP.NET
问题 The coding is in ASP.NET C#. I have a gridview, with say 1000 records and I am inline editing one of the rows. On Clicking Update, I would like my Grid to be on the exact x y position it was on before the postback happened. If you are thinking along the lines of using the Page directive, MaintainScrollPositionOnPostback="true" , no, it didnt work for me What is the most optimal method? 回答1: Using the UpdatePanel control to wrap your grid. Another way would be to use ajax instead like using