

When the user drops the files, the drop target text tells how many files were dropped. When the user drags items onto the target, the target color becomes light yellow. In our example, the user is presented with a drop target in gray.

Click HTML Page and change the name to UploadFiles.html, click Add. To create your Drag and Drop Client, right-click the project, click Add | Add New Item… then in Search Installed Templates input box, search for html page. To do this, we’ll create the client in an html file. I wanted to demonstrate how you can create an HTML client that could be migrated to work on a device, not necessarily hosted by a Web server. Right-click your project, click Manage NuGet Packages… then search online for jQuery. You can use Visual Studio 2012 or Visual Studio 2012 Express for Web for free.Ĭreate an Empty ASP.NET Project in Visual Studio 2012.Ĭlick File | New | New Website… the expand Templates, click Visual C#, click ASP.NET Empty Web Site in the center panel. I’ll provide references to sample code for other servers in the References section.

Of course other servers can be used, such as ASP.NET MVC, ASP.NET Web API, PHP, and Node.js. Create a generic handler in ASP.NET to receive the files.
#Jquery filedrop ashx file how to
