单击链接时屏幕闪烁-屏幕变白毫秒 [英] Screen Flickering when clicking on link -screen goes white for millisecond
问题描述
美好的一天
我已经创建一个带有菜单的ASP.net网站.这些菜单包含指向主页",应用程序"和联系我们"页面的链接.
我遇到的问题是,当我单击菜单上的这些链接中的任何一个时,屏幕会变白一毫秒.
我尝试使用元标记并将其放置在头部.但这没用.
Good day
I have create an ASP.net website with a menu. These menu contains links to the Home, Application and contact us page.
The problem that I have is, that the screen goes white for a millisecond when I click on anyone of these links on the menu.
I have tried to use meta tags and place then in the head section. But it did not work.
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.0)" />
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.0)" />
我已阅读以下文章,并且所有文章都建议使用AJAX.
http://stackoverflow.com/questions/4811132/web-design-when-switching-pages-how-do-you-prevent-the-screen-from-flashing-w [ http://forums.asp.net/t/1616475.aspx/1 [ ^ ]
http://bytes.com/topic/net/answers/784825-screen-flicker- asp-net [^ ]
有什么建议吗?
谢谢
I have read the following articles, and all of them recommend to use AJAX.
http://stackoverflow.com/questions/4811132/web-design-when-switching-pages-how-do-you-prevent-the-screen-from-flashing-w[^]
http://forums.asp.net/t/1616475.aspx/1[^]
http://bytes.com/topic/net/answers/784825-screen-flicker-asp-net[^]
Any suggestions?
Thanks
推荐答案
尝试使用名为MaintainScrollPositionOnPostBack
的Page标记的属性,将其设置为True
.
旧的且已弃用的功能称为SmartNavigation
,而MaintainScrollPositionOnPostBack
取代了它.使用SmartNavigation
时,IE 5.5及更高版本的闪烁较少.
如果需要使所有页面具有相同的属性,则可以将其添加到web.config文件中.
Try using the attribute of the Page tag calledMaintainScrollPositionOnPostBack
set it toTrue
.
The old and deprecated feature was calledSmartNavigation
andMaintainScrollPositionOnPostBack
replaces it. WithSmartNavigation
there was less flicker with IE 5.5 and above.
If you need to make all the pages with the same attribute you can add it to the web.config file.
<system.web>
<pages maintainscrollpositiononpostback="true" />
</system.web>
这篇关于单击链接时屏幕闪烁-屏幕变白毫秒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!