AjaxToolkit: the last TabContainer on the page is focused on page load

前端 未结 5 2043
梦毁少年i
梦毁少年i 2021-01-18 07:00

I\'m using more than one TabContainer on a page in an ASP.NET project and I noticed a really strange behavior: when the page is loaded the focus jumps to the last TabContain

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-18 07:15

    This is an old thread, but it never got resolved – here or in any of the other threads I found – and I had the same problem.

    I fixed it by putting my javascript in the body element: onload="scrollTo(0,0);"

提交回复
热议问题