autoscroll to bottom

  • Thread starter Thread starter MikeB
  • Start date Start date
M

MikeB

Hello all, I am trying to get my web page (asp.net 2.0) to scroll to the
bottom automatically on a post back. The code I used previously dosn't
appear to work anymore. Can someone please help?

Here is what I used before:
 
Hi,

To scroll the page to the bottom, you cld try adding this to your client
script.
window.scrollTo(0,600)

This will make your page scroll to the bottom. But then if the page has to
scroll down only after a post back, in that case, have this script into some
function, and invoke the funtion on the <body> tag's onload event.

Have some hidden variable, which you cld set to diffrentiate a postback
and a non-postback. The value of this hidden variable can always be altered
is the codebehind.

I hope this helps..

- Parvathy Padmanabhan
 
Back
Top