Tip Details Add a Related Tip

Rate as: Positive Negative

Maintaining page scroll position with ASP.Net 2.0

In ASP.Net 2.0, it's really easy to maintain the scrolling position on the page when the page gets posted back to itself. It's a good idea to do this so that when the post is made, the user does not have to scroll back down to where they were. This makes the users happy, which is the goal of all developers, right?

To do this, just add the MaintainScrollPostionOnPostBack attribute to the Page directive like so

<%@ Page Language="C#" MaintainScrollPositionOnPostback="true" ...rest of directive... %>

With this one simple attribute you can save your users some minor trouble, but it's one of those things that makes a sight look good to the user.
Rating: no ratings, 0 total Votes
Categories: ASP .Net programming
Added: on Jun 08, 2007 at 12:31 pm
Added By: an anonymous user
Searches: page asp .net user programming

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Using ASP.Net variables in your Javascript code

100% positive, 2 comments - last added on Sep 04, 2007 at 7:12 am
– Tip added by an anonymous user on May 05, 2007 at 7:00 am

Setting the button triggered by the enter key

Categories: programming ASP .Net web
100% positive, 0 comments
– Tip added by an anonymous user on Jun 05, 2007 at 6:09 pm

Electronic payment processing in ASP.Net web applications

Categories: programming ASP .Net web
100% positive, 1 comment - last added on Apr 30, 2007 at 1:32 pm
– Tip added by an anonymous user on Apr 25, 2007 at 12:01 pm

Master pages in ASP.Net 2.0

Categories: programming ASP .Net
100% positive, 0 comments
– Tip added by an anonymous user on Apr 24, 2007 at 3:05 pm

Adding an email attachment in .Net

Categories: programming ASP .Net web
0% positive, 0 comments
– Tip added by an anonymous user on Apr 26, 2007 at 3:49 pm

Hex colors in System.Drawing

Categories: ASP .Net web
100% positive, 1 comment - last added on May 27, 2007 at 8:18 pm
– Tip added by an anonymous user on May 25, 2007 at 8:44 am

jQuery ajax responseText empty

100% positive, 2 comments - last added on Aug 25, 2009 at 9:58 am
– Tip added by an anonymous user on Mar 27, 2009 at 8:26 am

Length of associative arrays in Javascript

100% positive, 0 comments
– Tip added by an anonymous user on Nov 04, 2008 at 10:13 am

reading select element values in javascript in IE7

100% positive, 0 comments
– Tip added by an anonymous user on Jul 17, 2009 at 1:28 pm

Unable to click in text input boxes on Internet Explorer

100% positive, 2 comments - last added on Aug 07, 2009 at 4:57 pm
– Tip added by Marcos84 on Dec 09, 2008 at 10:49 am

Getting answers from Experts Exchange

Categories: programming web
100% positive, 0 comments
– Tip added by an anonymous user on Apr 14, 2009 at 10:57 am

CSS3 Color Names

100% positive, 0 comments
– Tip added by codenique.com on Apr 14, 2009 at 4:18 am

Don't include a "length" attribute in a JSON Object

100% positive, 0 comments
– Tip added by an anonymous user on Apr 10, 2009 at 4:51 pm

Unable to make a Clean build in XCode

Categories: Mac Xcode programming
50% positive, 1 comment - last added on Jul 04, 2009 at 2:06 pm
– Tip added by an anonymous user on Feb 21, 2009 at 10:34 am

Checking for undefined variables in Javascript

100% positive, 1 comment - last added on Jul 14, 2009 at 5:13 pm
– Tip added by an anonymous user on Jan 14, 2009 at 9:47 am

Determining keywords for your pages

100% positive, 0 comments
– Tip added by an anonymous user on Nov 13, 2008 at 10:28 am

Make and Print Clip-art Card for Thanksgiving 2009

no ratings, 0 comments
– Tip added by an anonymous user on Nov 09, 2009 at 8:25 pm

PHP strftime errors in Smarty

no ratings, 0 comments
– Tip added by an anonymous user on Nov 03, 2009 at 3:04 pm

How to develop extensions for Chrome

no ratings, 0 comments
– Tip added by an anonymous user on Mar 20, 2009 at 6:58 am

Creating charts in PHP

no ratings, 0 comments
– Tip added by an anonymous user on Nov 28, 2008 at 10:37 am