Maintaining the scroll position on the return of the post does not work

advertisements

I have given MaintainScrollPositionOnPostback="true" on the @Page tag but its not working.

I am not using any update panel on the page.My .NET framework is 4.0 but still on postback its not working.

Please can anybody help me for the same?

Thank you.


You can try this

 protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Page.MaintainScrollPositionOnPostBack = true;
            }
        }

Working fine in my page.