Change Avatar

2 posts, 0 answers
  1. Fabio Cirillo
    Fabio Cirillo avatar
    180 posts
    Member since:
    Jan 2010

    Posted 01 Mar 2013 Link to this post

    hi,
    you show me the link of the example change avatar ? Upload and preview image
     I can not more 'to find it thanks

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Mar 2013 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top