How can I get back to the same position of a page on postback
. It always seems to get to the top of the page.
I've tried using maintainScrollPositionOnPostBack = "true"
But its not working.
See Question&Answers more detail:osHow can I get back to the same position of a page on postback
. It always seems to get to the top of the page.
I've tried using maintainScrollPositionOnPostBack = "true"
But its not working.
See Question&Answers more detail:osI've recently looked for this as well. Came up with a load of Javascript to be inserted until I found the following:
At the top of your .aspx codefile, insert the following:
MaintainScrollPositionOnPostback="true"
so the very first sentence in your .aspx starts
<%@ Page Language="C#" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
This works just fine for me without having to add any other code for keeping scrollbar positions using updatepanels