Scroll in Asp.Net Postback

  • Thread starter Miguel Dias Moura
  • Start date
M

Miguel Dias Moura

Hello,

When my page is postback on a button click even my page scrolls up to
the original position.

How to make my page return to the last scroll possition or maybe to a
specifique scroll position after postback?

I am working on Asp.Net 2.0.

Thank You,
Miguel
 
A

Adrian Parker

Add a page directive..

<%@ Page MaintainScrollPositionOnPostback="true" ... %>
 
G

Guest

In ASP.NET 2.0 this is easy.
Simply use this line of code:

Page.MaintainScrollPositionOnPostBack = True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,225
Latest member
Top Crypto Podcasts

Latest Threads

Top