In the Page Directive of the Asp.Net Page, add the property ‘MaintainScrollPositionOnPostback’ and set its value as ‘true’.
Example:
<%@ Page Language=”C#” CodeFile=”Default.aspx.cs” MaintainScrollPositionOnPostback = “true” Inherits=”_Default” %>
Now, the page will maintain the scroll bar position in the same location as it is before postback.
0 comments:
Post a Comment