ASP.net Postback - Scroll to Specific Position

后端 未结 9 1022
天命终不由人
天命终不由人 2020-12-15 16:50

I have an ASP.net WebForms page that has a lot of content on the top of the screen. It has a link button that will post back to the page and show another section of the page

9条回答
  •  無奈伤痛
    2020-12-15 17:14

    This scroll automatically to desired Div in asp.net Control This is Function call it from Where you Want and also Download Java script file

    OnClientClick="return scrollGrid()"

    function scrollGrid1() { $('html,body').animate ( { scrollTop: $('#Div1').offset().top }, 'slow' ) }

提交回复
热议问题