Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends, I have small query, that I want to upload image files of size not more than 100KB to uploads folder in my asp.net application. I have done successfully with ASP.Net File Upload Control that I have uploaded only image files and of max size not more than 100KB and after upload I am displaying that image below the control.
Every thing is works fine till now.

but now I want to do it with the use of HTML File Control and with javascript, because when I upload the file the whole page is refreshing when I use the ASP.NEt control, so that causes the other fields to be refreshed to old values which should not be done. I donot want to use any update panel which is under asp.net controls I want to do with pure HTML and javascript and after image upload can I show that upload image and even I want to delete the image that uploaded recently.

Is this possible that can we upload an image using Javascript without refreshing the page.

Any Help Please post over here.
Thanks
Ganesh
Posted

try using ajax asyncfileupload control......
 
Share this answer
 

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