RadAsyncUpload in code behind, how to?

2 posts, 0 answers
  1. mohamed
    mohamed avatar
    2 posts
    Member since:
    Jan 2016

    Posted 21 Jan 2016 Link to this post


    My problem is, nothing happens, the code behind doesn't fire...Maybe someone could point me in the right direction. Is it possible to do something like this or am I totaly wrong here?

    <telerik:RadAsyncUpload ID="RadAsyncUpload1"
             Localization-Select="اختر الملف"



    public void UploadFiles(object sneder, FileUploadedEventArgs  e)
     const string relativePath = "~/App_Themes/media";
            var filename = e.File.FileName;
            var parentID = Convert.ToInt32(GridView1.SelectedValue);
            var filesize = Convert.ToInt32(e.File.ContentLength);
            var physicalSavePath = MapPath(relativePath) + filename;
            //Store file info in database
                var app_FilesAdapter = new app_FilesTableAdapter();
                app_FilesAdapter.Insert(filename, relativePath + filename, parentID, 1, DateTime.Now, filesize);
            //Save physical file on disk
                e.File.SaveAs(physicalSavePath, true);

  2. Vessy
    Vessy avatar
    2189 posts

    Posted 25 Jan 2016 Link to this post

    Hi mohamed,

    I have already answered your other ticket on the matter. Can you make the tests suggested there and see the results from them?

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top