How to use Upload control programatically

2 posts, 0 answers
  1. malebo
    malebo avatar
    7 posts
    Member since:
    Feb 2009

    Posted 31 Mar 2009 Link to this post

    Hi there,
    I need to upload the file to the server programmatically without adding the control to my xaml. But my code is failing:

    uploader = new RadUpload();

    On page load


    uploader.BufferSize = 100000;  

    uploader.MaxFileSize = -1;

    uploader.MaxUploadSize = -1;

    uploader.UploadServiceUrl =




    uploader.Filter =

    "CSV Files (*.csv)|*.csv|All files (*.*)|*.*";  



    uploader.IsPauseEnabled =




    uploader.IsMultiselect =




    uploader.MaxFileCount = 1;

    uploader.OverwriteExistingFiles =




    uploader.TargetFolder =


    I have my own browse button and inside the click event i have this code




    And in my upload event button this code:

    but upload is not happening please help





  2. Ivan
    Ivan avatar
    519 posts

    Posted 02 Apr 2009 Link to this post

    Hi malebo,

    The approach you have chosen is very interested and it is still workable - we have the right article (with example) for you: How to use the RadUpload programatically.

    Just give it a try and let me know if other questions arise.

    Kind regards,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
Back to Top