图像控件未刷新 [英] Image control not getting refreshed

查看:75
本文介绍了图像控件未刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在我的应用程序中,我需要编辑图像.我正在使用图像控件,
如果我们将7.jpg图像更改为7.gif图像,图像将被更改,但是如果我尝试将7.jpg更改为7.jpg,则旧图像仍会保留在那里.这可能是原因.请建议...

如果我使用
memimage.ImageUrl = pathToCheck +?n" + DateTime.Now.Second.ToString();

图像从7.jpg更改为7.jpg,但是当我尝试更改
7.jpg到7.gif,那么第一次没有图像显示在那儿,如果我尝试
现在再次出现图像.


Hi,
In my application,I need to edit the images.I am using image control,
in that if we change 7.jpg image to 7.gif image the image is getting changed but if i try to change 7.jpg to 7.jpg the old image still stays there.what could be the reason.Please suggest...

if i use
memimage.ImageUrl = pathToCheck + "?n" + DateTime.Now.Second.ToString();

image is getting changed from 7.jpg to 7.jpg but when i try to change
7.jpg to 7.gif then first time no image is displayed there then if i try
again now image appears.


what is the solution for this?

推荐答案

浏览器缓存.

尝试删除Bowser缓存.
Browser caching.

Try deleting the bowser cache.


这是因为浏览器缓存,请尝试每次删除浏览器缓存或更改图像名称.
This is because of browser cache,try deleting the browser cache or change the name of image everytime.


这篇关于图像控件未刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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