We help IT Professionals succeed at work.
Get Started

ASP.NET Page Not Returning to Last Screen position After Postback

Last Modified: 2014-05-29
Hello Folks

I have an application for adding order information.
It works fine.
The problem I have is that the page is quite long, spanning several pages in height.

When a user clicks on a checkbox or a dropdown, an autopostback fires.
That's fine.
But instead of the user staying at the same location on the page, the page is refreshed to the top of the screen.

This is annoying the users since they have to scroll down to where they left off everytime a click event takes place.

I am running .NET Framework v:2.0.50727

I have tried using ScriptManager and JavaScript, but a parser error returns saying "Unknown server tag asp:ScriptManager".

If someone can help me with resuming the page position after postback, that would be great.
If I need to use ScriptManager then that's the second problem that has to be fixed.

Watch Question
Top Expert 2011
This problem has been solved!
Unlock 2 Answers and 7 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE