hi guys, i have a combined control to display image using fileupload and image controls. the code below works perfectly for IE browser but for some reason it wont give me the desired result using firefox and chrome. would you suggest other work around?
cheers.
html
Code:
<asp:FileUpload ID="FileUpload1" runat="server" />
vb
Code:
FileUpload1.Attributes.Add("onchange", "javascript:LoadImage();")
javascript
Code:
function LoadImage(){
document.getElementById('imgImage').src=document.getElementById('FileUpload1').value;
}