This is a migrated thread and some comments may be shown as answers.

Change Avatar

1 Answer 47 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Fabio Cirillo
Top achievements
Rank 1
Fabio Cirillo asked on 01 Mar 2013, 06:53 PM
hi,
you show me the link of the example change avatar ? Upload and preview image
 I can not more 'to find it thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 Mar 2013, 04:19 AM
Hi,

You can preview the uploaded image in RadUpload using the following javascript.
JS:
function OnClientFileSelectedHandler(sender, eventArgs) {
       var input = eventArgs.get_fileInputField();
       if (sender.isExtensionValid(input.value)) {
           var img = document.getElementById('<%= Image1.ClientID %>');
           if (img) {
               img.style.visibility = "";
               img.src = input.value;
           }
       }
   }

Thanks,
Princy
Tags
AsyncUpload
Asked by
Fabio Cirillo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or