JScript – Image Clear Cache

A image field can’t refresh  when the image file changed.
A cache must be cleared ?

public function UpdateImage(imageName) {
image.Source = null;
try {
var uri = new System.Uri(baseUrl +  imageName + fileExtension);
var bitmap = new BitmapImage(uri);
image.Source = bitmap;
} catch(ex) {}
}

PrtScr capture_55

Advertisements