ASP.NET AJAX的UpdatePanel闪烁 [英] ASP.NET Ajax UpdatePanel flicker

查看:219
本文介绍了ASP.NET AJAX的UpdatePanel闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的code

<asp:LinkButton ID="createChart" runat="server" OnClick="createChart_onClick"></asp:LinkButton>
<asp:UpdatePanel ID="result" runat="server" UpdateMode="Conditional">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="submit" />
            </Triggers>
            <ContentTemplate>
                <!-- content -->
            </ContentTemplate>
</asp:UpdatePanel>

它的伟大工程。 我的问题是,每一个现在,然后我在请求和响应之间的某个时候看到一个白色闪烁。这是一个有点恼人。这是一种常见的发生或可能是因为我的网页上其他一些JavaScript的?

It works great. My problem is that every now and then i see a white flicker sometime in between a request and a response. It's a little annoying. Is this a common occurrence or could it be because of some other javascript on my page?

推荐答案

在Chrome浏览器,你会看到一个闪烁的UpdatePanel的,如果你的Ajax响应包含图片网址。我注意到,该闪烁不使用Safari,Firefox或Safari浏览器的移动而不仅仅是Chrome出现,当我删除停止&LT; IMG SRC =/图像/ photo.png/&GT; 从Ajax响应的内容。

In Chrome you will see a flicker with the UpdatePanel if your ajax response contains image urls. I noticed that this flicker did not occur with Safari, Firefox or Safari mobile but just Chrome and stopped when I removed <img src="/images/photo.png" /> from ajax response content.

这篇关于ASP.NET AJAX的UpdatePanel闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆