Pages

Thursday, July 21, 2011

How to maintain the scroll position after ASP.NET page postback

Views

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

 

Web Design Company karimnagar, Web Designing warangal, Logo Design Company nizamabad, Indian Website Design Company, maddysoft.co.in