ASP.NET - How to display Image immediatly after selecting from asp.net fileupload control..?

Asked By Giri s on 04-Aug-12 03:13 AM

Hi Friends,

I have a file upload control and an image control.When user clicks on browse button of file upload control, then window will be opened and then user selects any image from the window..Till now everything ok...But, the image will be uploaded in image control only using any click event right?Is there any possibility that without using any click event, when user selects an image by clicking on browse button of file upload control, then immediately the image should be displayed in the image control..Is is possible in asp.net file upload control and asp.net image control?????Please reply..

Danasegarane Arunachalam replied to Giri s on 04-Aug-12 07:23 AM

Using default file upload control this is not possible. If you want to show the image, you need to upload it to server and then only you can able to show the image. You can search for any third party control to achieve this one

Peter Bromberg replied to Giri s on 04-Aug-12 02:06 PM

You can use a custom control like this one to display images directly from memory: