下面是 vs.net帮助中说的:
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.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.主要是说:可以在POSTBACk时消除画面的闪烁。
当从一个页面到别一个页面时可以保持滚动条的位置。
在导航时可以保持焦点落在某个元素上。
在浏览器的历只中只保持最后一个页面的状态。
最适合用于需要频繁 postback但页面可视内容变更较少的 asp.net 页面。
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.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.主要是说:可以在POSTBACk时消除画面的闪烁。
当从一个页面到别一个页面时可以保持滚动条的位置。
在导航时可以保持焦点落在某个元素上。
在浏览器的历只中只保持最后一个页面的状态。
最适合用于需要频繁 postback但页面可视内容变更较少的 asp.net 页面。
解决方案 »
- 【activereports】有用这个报表做柱状图的吗?
- vs程序部署到服务器问题检索COM 类工厂中CLSID
- (MSPX)IIS添加/编辑应用程序扩展名映射问题
- 将AJAX Toolkit中的控件拖动到页面上时VS2005提示“尝试读取或写入受保护的内存,这通常指示其他内存已损坏”
- 多国语言(四种)网站,用IE6浏览,越南语部分字符不显示,但是在IE7和FireFox上却是正常的,为什么,有什么办法在IE6上也显示正常
- ASP.NET用什么工具编程?
- 关于image控件的链接和弹窗向诸师兄请教
- C#中的if语句
- 为什么在局域网中不能访问别的机子IIS下的ASP.Net网站
- 可不可以新开一个页面,页面的背景色由自己控制,
- 急,asp中有没有给字符前面补0的函数
- 如何让日历同时显示两个月,或多个月?
在大多數的情況下,不要在程式碼中設定這個屬性。設定 .aspx 檔案 @ Page 指示詞的 SmartNavigation 屬性為 true 。要求網頁時,動態產生的類別會設定這個屬性。當 Internet Explorer 5 或更新版本的瀏覽器要求網頁時,智慧型巡覽可執行下列功能來加強使用者對網頁的經驗: 排除巡覽造成的閃爍顯示。
在網頁間移動時保存捲軸位置。
在巡覽之間保存項目焦點 (Focus)。
只保留最後一頁的狀態在瀏覽器的紀錄中。
智慧型巡覽最適合與需要時常回傳、但傳回的視覺內容並無劇烈變更的 ASP.NET 網頁搭配使用。
決定是否將這個屬性設定為 true 時請仔細考慮這一點。