View Single Post
  #4 (permalink)  
Old July 5th, 2009, 04:58 AM
Imar's Avatar
Imar Imar is online now
Wrox Author
Points: 33,563, Level: 80
Points: 33,563, Level: 80 Points: 33,563, Level: 80 Points: 33,563, Level: 80
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,231
Thanks: 7
Thanked 203 Times in 201 Posts
Default

Hi Richard,

You can try setting the MaintainScrollPositionOnPostback: http://msdn.microsoft.com/en-us/libr...npostback.aspx This automatically scrolls back the page to where it was when you posted it back.

If that's not good enough (e.g. you need to scroll to a different position) take a look here:

http://www.4guysfromrolla.com/articles/111704-1.aspx

It explains how to implement MaintainScrollPositionOnPostback before it was added to the Page class and gives you some ideas on implementing something like this.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004

Did this post help you? Click the button to show your appreciation!
Reply With Quote