Last post Jan 17, 2012 10:53 AM by moredotnet
Jan 16, 2012 02:24 AM|HebaAbdelFattah|LINK
Hi all, I am not sure if I am posting in the correct place because I am new to the ASP.net community. I am writing a page in aspx and whenever it posts back, for some odd reason, the focus is in the middle of the page and the vertical scroll bars are
scrolled to the middle and this is driving users crazy. How can I maintain the scroll bars position across the post backs? I tried to get the control that caused the post back and set focus on it. worked with chrome but not with IE
Jan 16, 2012 02:27 AM|MetalAsp.Net|LINK
Try your luck by setting the MaintainScrollPositionOnPostBack on the @page. Refer:
Jan 17, 2012 10:53 AM|moredotnet|LINK
Use the property maintainscrollpositiononpostback of the @page directive. Make sure your page's viewstate is enabled.