asp.net.ph

Page.SmartNavigation Property

System.Web.UI Namespace   Page Class


Sets or retrieves a value indicating whether smart navigation is enabled.

Syntax


Inline <%@ Page SmartNavigation = true | false ... >
Script Page.SmartNavigation [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true if smart navigation is enabled; otherwise false.

This property is read/write with a default value of false.

Remarks

NOTE: This property can also be set declaratively using the @ Page directive.

In most circumstances, you set the SmartNavigation attribute to true in the @ Page directive, not programmatically in code. When the page is requested, the dynamically generated class sets this property.

When a page is requested by an Internet Explorer 5 browser, or later, smart navigation enhances the user's experience of the page by performing the following:

  • eliminating the flash caused by navigation.
  • persisting the scroll position when moving from page to page.
  • persisting element focus between navigations.
  • retaining only the last page state in the browser's history.

Smart navigation is best used with ASP.NET pages that require frequent postbacks but with visual content that does not change dramatically on return. Consider this carefully when deciding whether to set this property to true.

See Also

Page Members   @ Page Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph