Jeffrey Palermo (.com)

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Retain scroll position in ASP.NET without the SmartNavigation non-feature - level 200

Maintaining Scrollback Position Across Postbacks

 

You much check out this post from Scott.  I was just about to the verge of rolling my own scroll-retaining javascript when I read this.  The credit really goes to Steve Stchur and his article on 4Guys.

 

SmartNavigation only works for the most trivial website.  When you do anything custom (anything besides drag-n-drop development), smartnavigation breaks your page, and it won't even post back.  This scroll problem is an issue for ASP.NET since the postback method is widely used. 

 

I have run across some older user will bad eyesight, and they are at 800x600 resolution, so they do A LOT of scrolling both vertically and horizontally.  Retaining scroll position will mean a better user experience for them.


Posted 11-22-2004 8:35 AM by Jeffrey Palermo

[Advertisement]

Comments

Sanjay Kattimani wrote re: Retain scroll position in ASP.NET without the SmartNavigation non-feature - level 200
on 10-18-2005 12:41 AM
Whenever you use smartnavigation, make sure you use absolute paths in your scripts, or else css gets ripped off. Take a look at my blog on this topic http://sanjaykattimani.blogspot.com/2005/10/net-smartnavigation.html