Hi PeejAvery,

As I hav mentioned in my previous post, that I'm using a file upload control which is placed in an iframe. After I click the browse button and select an image, I would like to display that image in an <image> control which too is placed within the iframe.

The file upload control <tag> looks like this..

<input type="file" id="fileUserAttachment" runat="server" onchange="return StartFileChangeTimer();" />

And inside StartFileChangeTimer() function , I'm trying to display the image in the <image >control.. However, the code to display image is executing without any problem.. but the image is not being displayed..


The following code is what I have used to display the image..

var sFileName = document.getElementById('fileuploadControl').value;
sFileName = sFileName.replace(/\\/g,'/');

document.getElementById('imgControlID').style.display = 'block';
document.getElementById('imgControlID').src = sFileName ;

From this , can u tell me where I have gone wrong ???

any help would b much appreciated .. :-)

thanx PeejAvery