Calling AsyncUpload from custom button?

7 posts, 1 answers
  1. RJ
    RJ avatar
    386 posts
    Member since:
    Oct 2006

    Posted 02 Sep Link to this post

    Hi All,

    I wanted to hide the default AsyncUpload button and call it using my custom button. The loading of file will still show once its called by my button.

    My custom buttons is just <a href.. with  FontAwesome.

    <a href="#" onclick="callUpload(); return false;" ><i class="fa fa-camera large" title="Change Photo"></i></a>

    Any code for JavaScript that can call the AsyncUpload click?

     

    Thanks in advance,

    RJ

     

     

  2. RJ
    RJ avatar
    386 posts
    Member since:
    Oct 2006

    Posted 04 Sep in reply to RJ Link to this post

    function callUpload() {
      var upload = $find('<%=AsyncUpload1.ClientID %>');
      upload.click();
    }
    This doesn't work

    but it works using asp:FileUpload....

    what is the method or property for AsyncUpload?

     

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. RJ
    RJ avatar
    386 posts
    Member since:
    Oct 2006

    Posted 05 Sep in reply to RJ Link to this post

    Any workaround?
  5. RJ
    RJ avatar
    386 posts
    Member since:
    Oct 2006

    Posted 15 Sep Link to this post

    function callUpload() {
     
      var upload = $find('<%=AsyncUpload1.ClientID %>');
     
      upload.-->property/method to call click????
     
    }
  6. RJ
    RJ avatar
    386 posts
    Member since:
    Oct 2006

    Posted 28 Sep in reply to RJ Link to this post

    ?  :(
  7. Answer
    Anton
    Admin
    Anton avatar
    61 posts

    Posted 30 Sep Link to this post

    Hi,

    You can check on the following forum thread.

    Regards,
    Anton
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  8. RJ
    RJ avatar
    386 posts
    Member since:
    Oct 2006

    Posted 04 Oct in reply to Anton Link to this post

    Thanks a lot Anton!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017