Maintain Panel Scroll Position On Partial Postback ASP.NET

前端 未结 3 1816
南笙
南笙 2020-11-28 10:18

I have a gridview that putted in ASP.NET Panel. both of panel and Gridview are in an UpdatePanel. there is a column in gridview that Causes Partial PostBacks. i want to Main

3条回答
  •  半阙折子戏
    2020-11-28 10:30

    There is no built-in facility to resolve it in asp.net

    However, there is a workaround for this problem; You need to handle it with javascript.

    Solution is mentioned here: Maintain Scrollbar Position Inside UpdatePanel After Partial PostBack

    Edited 20-May-2012; after seeing the comments

    <%-- Some stuff which would cause a partial postback goes here --%>

    Below is the code snapshot:-

    Maintain Scrollbar Position Inside UpdatePanel After Partial PostBack

提交回复
热议问题