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
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.
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 |

