In my asp.net page I have an image upload control where users can upload there profile photo. what I want is when user browse his/her photo an immediate preview should displayed. Is there any ajax image control for that or how can I implement that?
A:
javascript won't allow you to access the clients image until it has been uploaded so your only option is to show the image after the file has been uploaded. I'm not sure but you may be able to do what you want by creating a fileupload control in flash but I don't know flash so I can't help you with that.
Mike
2010-09-27 16:40:39
A:
You have to upload the file before you can access it. To make an async file upload you need more than one UpdatePanel
. This code example shows a trick to make an upload without reloading the page. Finally to make your preview you would need to make a javascript function to change the url of an image on the page.
BrunoLM
2010-09-27 18:23:52