Postback and return view

  • Thread starter blackstaronline.net
  • Start date
B

blackstaronline.net

Hi,

I have a several buttons that when clicked makes a postback and
executes some code. My page has a lot of data on it so the user will
work their way down the page having to use the scroll bar to view it
all. But when a post back happens the screen returns to the top.

This can get very annoying when they make a simple change to the lower
half of the screen and immedietly have to scroll down to see the
changes everytime.

Anybody know how I can make the page return to the same position on the
page as before the postback was fired?

a BIG thanks in advance for the help,
Jeremy Reid
http://hgtit.com
 
B

blackstaronline.net

Thanks.

I actually found the answer online.

http://aspalliance.com/356

This guy is giving away a free .dll that (through client side java)
captures the scroll position of the page and then reloades the page to
the specific scroll postion on postback. I just tested it out and it
works great.

Its a little better than anchors because anchors will still move the
page on postback. I was looking for a solution that would return the
page to the exact location it was in before the postback was fired.

Thanks,
Jeremy Reid
http://hgtit.com
 

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

Top