Microsoft ASP.NET AjaxControlToolkit has recently published a multiple file upload. That allows you to upload multiple files at a time with Drag and drop user interface. First we will see, how to use AjaxFileUpload control in asp.net site. Open new project in Visual studio. I am using visual studio 2010. In default page, add script manager, Update panel. You can also add update progress (optional). For using AjaxFileUpload, you need to download latest AjaxControlToolkit from codeplex site. If you don't know how to add that to your visual studio then refer this link . Now you can see AjaxFileUpload in Ajax Toolkit. Add that to update panel and edit the code as below. <asp:AjaxFileUpload ID= "AjaxFileUpload1" runat= "server" AllowedFileTypes= "jpg,jpeg,png,gif" MaximumNumberOfFiles= "10" OnUploadComplete= "File_Upload" /> AllowedFileTypes : Defines which files are allowed to be uploaded MaximumNumberOfFi...
Comments
Post a Comment