April 18, 2008

Return to same web page location in ASP.NET

It is really annoying when you have a page that contains a lot of data and every time the page refreshes it goes back to the top of the page, to overcome that issue of the web page forgetting its previous location.
If it was an ASP.NET page, you can enable what is called Smart Navigation; where the page remembers the last place it was at before refreshing, to do that, place the following snippet in the page directive on the page you want to enable smart navigation on.

No comments:

Post a Comment