How can you prevent the page from scrolllng up and down when some postback occurs ?

 Posted by Ddd on 2/3/2011 | Category: ASP.NET Interview questions | Views: 4974 | Points: 40

In the Page directive add this attribute MaintainScrollPositionOnPostback=true

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Shantanupatel on: 2/4/2011 | Points: 10
In earlier versions of ASP.NET, you enable smart navigation by using the Page.SmartNavigation property.
When you set the Page.SmartNavigation property to true, the following smart navigation features are enabled:

The scroll position of a Web page is maintained after postback.
The element focus on a Web page is maintained during navigation.
Only the most recent Web page state is retained in the Web browser history folder.
The flicker effect that may occur on a Web page during navigation is minimized.

Login to post response