Problem with AsyncUpload and User Control .ascx files

2 posts, 0 answers
  1. Brett
    Brett avatar
    72 posts
    Member since:
    Mar 2012

    Posted 22 Jun 2014 Link to this post

    I am having issues using the AsynUpload control and .ascx files.  It's almost like it doesn't work with them at all.  I try to use the clientside development and the server side development and either I get errors or it just doesn't fire.  What can I do to alleviate this issue?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Jun 2014 in reply to Brett Link to this post

    Hi Brett,

    The provided information is not enough to replicate the issue. Please have a look into the sample code snippet which works fine at my end. 

    ASPX:
    <uc1:Asyncupload ID="Asyncupload1" runat="server" />

    ASCX:
    <telerik:RadAsyncUpload ID="rasyncuploadUserControl" runat="server" OnClientFileUploaded="getFileName">
    </telerik:RadAsyncUpload>
    <telerik:RadButton ID="rbtnUpload" runat="server" Text="Upload" OnClick="rbtnUpload_Click">
    </telerik:RadButton>

    JavaScript:
    function getFileName(sender, args) {
        alert(args.get_fileName());
    }

    ASCX.CS:
    protected void rbtnUpload_Click(object sender, EventArgs e)
    {
        int uploadedFileCount = rasyncuploadUserControl.UploadedFiles.Count;
    }

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