2
comments
Wednesday, February 25, 2009
By default during page postback, browser set the scroll position of the page to the top (unless your using focus() property on textbox). More often users like their scroll position be retain specially if they viewing/filling-up a long page. This can be done using some javascript tweak. Luckily for ASP.NET developers, there is quick way to maintain the position.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" MaintainScrollPositionOnPostback="true" %>
The code above will cause your page to restore the last position of the browser's scroll bar.
Disclamer: This tip is only valid for ASP .NET 2.0 pages
Continue Reading...



