Click here to Skip to main content
15,922,696 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
Hi All,

How can I see the image I am going to upload.

Ex:

I am going to upload test.jpg.
I am going use the FileUpload in ASP.Net, then when I select the test.jpg and click OK the image will display rightaway. But not yet saved o the database to the database.
I don't know if these requires of Javascript or something.

Please help me in this.

Thanks in Advance.
Posted
Updated 30-May-11 22:47pm
v2

Create some temp folder in ur application, where once u clicked on upload it will copy that image from user machine to ur temp folder, keep the track of image name then take that path to display when needed once inseted to database delete that temp image permanently.
 
Share this answer
 
 
Share this answer
 
Comments
amit28august 31-May-11 5:21am    
use fileupload control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900