This is a discussion on ASP.NET FAQ - maintain page scroll position after a page postback? within the ASP and ASP.NET Programming forums, part of the Web Development category; ASP.NET FAQ - maintain page scroll position after a page postback?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Say you'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. If you want, instead, to maintain the page scroll on a postback, 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 | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/asp-asp-net-programming/2594-asp-net-faq-maintain-page-scroll-position-after-page-postback.html | |||
| Posted By | For | Type | Date |
| ASP.NET FAQ - maintain page scroll position after a page postback? | Web Hosting | This thread | Refback | 03-28-2008 09:25 PM |
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 |
| detect hour of the day and selects a link, they go to either a day page or night page | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 01-11-2008 02:09 AM |
| How to change aspx page to html page? | S.Vinothkumar | ASP and ASP.NET Programming | 4 | 10-26-2007 11:46 PM |
| How can i maintain page scroll position after a postback ASP.NET 2005? | a.deeban | ASP and ASP.NET Programming | 1 | 08-22-2007 10:24 PM |
| How can I automatically load another page or reload the same page? | Archer | C# Programming | 0 | 07-16-2007 12:10 AM |