Maintain Scroll Bar position of a div within a gridview after a PostBack

前端 未结 4 459
一向
一向 2021-02-04 20:43

I used the following piece of code in the web.config in order to maintain the scrollbar position after a server postback:



        
4条回答
  •  一个人的身影
    2021-02-04 21:38

    Try this,

      
    
     
     

    In the Page_Load

    if (Page.IsPostBack) {
        ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "CallJS", "afterpostback();", true);
        }
    

提交回复
热议问题