This is a discussion on How can i maintain page scroll position after a postback ASP.NET 2005? within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, Say i've got some really long page, perhaps with some huge Control -- like, say, a huge, edit-enabled ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, Say i've got some really long page, perhaps with some huge Control -- like, say, a huge, edit-enabled GridView. Someone clicks a link halfway down that page (like, say, the "Edit" link on one of the later entries in that huge GridView). It generates a postback, and the page get refreshed to its *top* instead of half-way down. I want, instead, to maintain the page scroll on a postback. need help .... thnx... |
| Sponsored Links |
| |||
| Hi just set the MaintainScrollPositionOnPostback property on the Page. You can do this declaratively (in your aspx Page directive) like so: <%@ Page MaintainScrollPositionOnPostback="true" ... %> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'Page' ia an unambiguous reference between 'System.Web.UI.Page' and 'Project1.Page' | poornima | ASP and ASP.NET Programming | 1 | 03-05-2008 03:12 AM |
| how to maintain the session in multi server | vijayanand | PHP Programming | 2 | 10-13-2007 01:10 AM |
| What are the cycle of methods involved when a page loads in dot net 2005? | Archer | ASP and ASP.NET Programming | 1 | 07-25-2007 03:42 AM |
| ASP.NET FAQ - maintain page scroll position after a page postback? | Archer | ASP and ASP.NET Programming | 1 | 07-24-2007 12:40 AM |
| Applying CSS to Scroll Bar | raj | HTML, CSS and Javascript Coding Techniques | 1 | 07-13-2007 01:05 AM |