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

How to add the .NET MAUI App Accelerator in Visual Studio

 To add the .NET MAUI App Accelerator in Visual Studio, follow these steps: Prerequisites: Ensure you have Visual Studio 2022 (17.3 or lat...