Reg: Fileupload image
Hai i have a doubt which is i am using fileupload control to browse the image. Here my scenorio is when i browse the image path the image also displayed along with side without clicking upload button. How can i implement this
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sabarish GovindanPosted Feb 8, 2008, 2:35 AM
RakrusPosted Feb 8, 2008, 1:46 AM
Hi
1.Place a image conatiner[Imagebutton,Div,....] in the form
2.event to be handled is "onchange" of the HtmlInputFile,and place the following for the respective function
document.all["imagecontainerId"].style.backgroundImage="url("+document.all["File1"].value+")";
imagecontainerId:here i considerd it as "div"