in web page ,image control and file upload are there.if click file upload and select image file from local disc and it will display that image in asp.net image control without clicking another buttons or refreshing the page and before going to display that image its path has to be stored in database
Share
Use this function, remember to include jQuery library. The following function uses a reader, to read data and set it to the image src. Image src can also be urldata.
Add this to your image upload
onchange="readURL(this);". ASP.NET UploadControl has some problem with this function, use HTML upload control instead.Here is an working example http://jsbin.com/amoxip/2/edit#javascript,html