How can I configure the asyncfileupload control to support multipe file upload?
See original GitHub issueI was using the Ajax controltoolkit version 4. I installed the latest AJAX Controltoolkit (16.1) from the Visual Studio Nuget packet manager.
But, I don’t seem to be able to use the latest version.
It’s been installed in packages\AjaxControlToolkit.16.1.0.0\lib\net40
of my project. I copied the new AjaxControlToolkit.dll
file to my application’s bin
folder and replaced the existing dll. I restarted visual studio and also built my application again.
My page code has this:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<cc1:AsyncFileUpload ID="asyncCoverPhoto" CssClass="imageUploaderField" runat="server" ClientIDMode="AutoID" OnClientUploadComplete="uploadCoverphotoComplete" />
But I don’t see how I can configure the Asyncfileupload control to allow multiple file uploads. I tried adding the attribute AllowMultiple="true"
, but it doesn’t do anything. Also my Visual Studio Intellisense does not show any new attributes (such as the option to allow multiple files to be uploaded)
How can I add a asyncfileupload control that supports multipe files to be uploaded?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
No, Visual Studio Express editions do not support extensions. You can use Visual Studio 2015 Community Edition, which has wider capabilities. This edition is also free.
@flo-rider, thank you for reply!
We don’t advise to use the NuGet package for Visual Studio toolbar items, because a toolbar is shared across multiple projects, while the NuGet package affects only a particular solution or project. Solution/project removal can lead to a broken reference in a toolbar.
If you want to add toolkit items to a toolbar, the preferred way is to use the official installer, which will register toolbox items for all suitable Visual Studio instances.
However, you can use any control without any issues after installing the NuGet package, so you can copy this code into your page markup:
Make sure you added this web handler to the
Web.config
file: