This article shows how to allows pages to automatically maintain the current scroll position across postbacks.
The MaintainScrollPositionOnPostback page directive attribute allows to do that.
This feature is useful for large pages where scrolling is necessary to view input controls down further on the page.
There are three ways of applying the property to a web page.
- You can set it programmatically
Page.MaintainScrollPositionOnPostBack = true; - In the page declaration
<%@ Page MaintainScrollPositionOnPostback="true" %> - Or in the web.configs <system.web> section.
<pages maintainScrollPositionOnPostBack="true" />
A simple but very useful feature.
Smartnavigation = true implemented the same feature in 1.1 framework
SmartNavigation only had "issues" and it only worked in IE but the new MaintainScrollPositionOnPostback apparently works in most common browsers.
very nice,but if any one gives some more explaination it will some more better to under stand.thanks... hire dot net developer, .net development services
ReplyDelete