What is the use of MaintainScrollPositionOnPostBack property?

 Posted by Tripati_tutu on 11/17/2010 | Category: ASP.NET Interview questions | Views: 3697 | Points: 40

When a page is posted back to the server, at that time the user is at top position of the page rather it is not redirecting to that location where the user is before redirect of the webpage. So the use of MaintainScrollPositionOnPostBack property for a Page is to set the value as true or false for scroll position in the browser after the page is postback. When the property is set to true then the user will at that position at which the user is present before redirect. So we can say the user will redirect to the same position before redirect to another page.

<asp:Page MaintainScrollPositionOnPostBack="True/False" />

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response