Friday, August 26, 2011

What is SmartNavigation/ MaintainScrollPosition OnPostBack Property?

Smart Navigation enables the individual controls on your Web forms to maintain focus between post backs, plus allows you to suppress that "flicker" that occurs as you load the new page. To turn on this little-known feature, simply set the SmartNavigation property of your ASPX page to True. Note that Smart Navigation only works on Internet Explorer 5 and above; however, the .NET Framework will automatically detect this and only serve up the 'smart' code if the target browser supports it.
i.e.<@ Page SmartNavigation=true>
SmartNavigation is now outdated and in ASP.NET 2.0 this property is called MaintainScrollPositionOnPostBack.
i.e.<@ Page MaintainScrollPositionOnPostBack="true">

No comments:

Post a Comment

If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky

  If you’re using   Visual Studio   to build your   .NET MAUI   app on a   Mac , locating the   IPA (iOS App Package)   file can be a bit tr...