数据列表中的图像在任何按钮点击时闪烁 [英] image in datalist flickers on any button click

查看:71
本文介绍了数据列表中的图像在任何按钮点击时闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在笔记本电脑和localhost中测试我的项目。我有一个带有图像的数据表,以及从sql表中提取的其他文本

。我在'页脚模板'上也有一些按钮。此datalist位于

updatepanel内。在if(!IsPostback)中的'page load'中的默认页面中,我从表中调用行。

它运行良好。现在,当我单击任何按钮时,页面不会转到localhost服务器,因为UpdatePanel.Well是
。但按钮点击时图像闪烁。任何人都可以指导我如何停止这些图像闪烁。服务器是localhost。



谢谢。

I am testing my project in a laptop and localhost. I have a datalist with images, and other text
drawn from a sql table. I also have some buttons at 'footer template'. This datalist is within
updatepanel. In default page in 'page load' within if(!IsPostback) I call the rows from table.
It works well. Now, when I click any button , the page is not going to localhost server because
of UpdatePanel.Well. But the images are flickering on button click. Can any one guide me on how
to stop this images flickering. The server is localhost.

Thanks.

推荐答案

我或许可以将您的问题与我遇到的问题联系起来几年前用C ++ windows论坛应用程序。我正在将图片加载到背景中并操纵它们。每当我操纵它们时,图片就会闪烁,每次我在屏幕上移动论坛时图片都会闪烁。我发现这是由于图像质量很高而我的GPU无法足够快地更新图像而导致闪烁。要验证这是问题,请用一个1-2kb的小文件替换图片,看看它是否仍然闪烁。如果没有那么你的图片质量是两个高。您可以使用相同的图片但需要缩小尺寸。你可以去 http://www.imageoptimizer.net/Pages/Home.aspx [ ^ ]并缩小文件大小以停止闪烁。
I may be able to relate your problem to a problem that I was having a few years ago with C++ windows forums application. I was loading pictures into the background and manipulating them. Every time I manipulated them the pictures would flicker, every time I moved the forum around on the screen the picture would flicker. I found out that this was caused by the image quality being to high and my GPU not being able to update the picture fast enough causing a flicker. To verify that this is the problem replace the picture with a small 1-2kb png file and see if it still flickers. If it doesn't then your picture quality is two high. You can use the same picture but need to lower the size. You can go to http://www.imageoptimizer.net/Pages/Home.aspx[^] and reduce the file size to stop the flickering.


这篇关于数据列表中的图像在任何按钮点击时闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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