Can't find FilesSelectedEventArgs when using RadUpload

Thread is closed for posting
2 posts, 0 answers
  1. Ama
    Ama avatar
    1 posts
    Member since:
    Dec 2012

    Posted 19 Dec 2012 Link to this post

    Hi, I used RadUpload tool to upload image file and I want to show it when I select an image file on Dialog window. So I search on google and I found this page http://www.telerik.com/help/silverlight/radupload-events-overview.html with info of "FilesSelectedEventArgs"

    • FilesSelected - occurs when files have been selected from the browse dialog window. The event handler receives two arguments:
      • The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
      • A FilesSelectedEventArgs object.
    But when I code, I can't find this. It's just have FileUploadedEventArgs . Please help me! Thanks

    protected void UploadImage(object sender, FilesSelectedEventArgs e)
        {

            int counter = 1;
            UploadedFile file;
            file = e.File;
           
            string targetFolder = Server.MapPath(RadUpload1.TargetFolder);

            string targetFileName = Path.Combine(targetFolder,
                file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());

            while (System.IO.File.Exists(targetFileName))
            {
                counter++;
                targetFileName = Path.Combine(targetFolder,
                    file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
            }
            Image1.ImageUrl = targetFileName;
            upload_image_handle(sender, e);// call FilesSelectedEventhandle
        }
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Dec 2012 Link to this post

    Hi,

    I am not quite sure about your requirement. The article you are pointing is related to radupload in silverlight. Check the following help documentation which explain server side events of radupload.
    Server-Side Events

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top