System.Web.UI.Page.SmartNavigation Property

Gets or sets a value indicating whether smart navigation is enabled. This property is deprecated.

Syntax

[System.ComponentModel.Browsable(false)]
[System.Obsolete]
[System.Web.UI.Filterable(false)]
public bool SmartNavigation { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

Note:

In ASP.NET version 2.0, the Page.SmartNavigation property is deprecated. Use the erload:System.Web.UI.Page.SetFocus method and the Page.MaintainScrollPositionOnPostback property instead.

When a page is requested by Microsoft Internet Explorer 5.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.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0