Microsoft Most Valuable Professional

Chris Pietschmann

An MVP From Wisconsin



ASP.NET 2.0: Maintain Scroll Position On Postback

The MaintainScrollPositionOnPostback page directive attribute allows pages to automatically maintain the current scroll position across postbacks. This feature is usefull for large pages where scrolling is necessary to view input controls down further on the page.

[code:html]
<%@ Page MaintainScrollPositionOnPostback="true" %>
[/code]

A simple but very usefull feature.

Currently rated 4.0 by 9 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:
Categories: General
Posted by crpietschmann on Monday, April 03, 2006 10:09 PM
Permalink | Comments (5) | Post RSSRSS comment feed

Related posts

Comments

Yaakov Ellis

Wednesday, April 05, 2006 5:14 AM

Yaakov Ellis

Thanks for pointing out this feature (I used to use a custom control to handle this).

Is there a list of these features written down somewhere? Or do you just have to poke through lots of documentation and check out all of the different intellisense options in VS2005 to find them?

Sri

Thursday, April 06, 2006 7:16 AM

Sri

Smartnavigation=true implemented the same feature in 1.1 framework

Richard P

Thursday, April 20, 2006 6:48 AM

Richard P

To Sri and anyone else who reads,
SmartNavigation only had "issues" and it only worked in IE. The new MaintainScrollPositionOnPostback apparently works in most common browsers and doesn't have the "issues" associated with SmartNavigation...

Just my 0.2 cents

arun thakur

Wednesday, August 02, 2006 1:27 AM

arun thakur

this good for page textbox and other controls but in case of iframe this funtion this fail

Amresh

Thursday, December 28, 2006 2:55 AM

Amresh

Small but Nice piece of info.Great!!

Comments are closed

About the author

I'm Chris Pietschmann, go to the About Me page to learn more about me.

Search

Sponsors

Web.Maps.VE - ASP.NET AJAX Virtual Earth Mapping Server Control

Recent comments

Disclaimer


This work is licensed under a Creative Commons Attribution 3.0 United States License, unless explicitly stated otherwise within the posted content.
© Copyright 2004 - 2008 Chris Pietschmann