This is a migrated thread and some comments may be shown as answers.

Working sample to download

1 Answer 37 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
weyer
Top achievements
Rank 1
weyer asked on 08 Dec 2014, 11:01 PM
I haven't been successful getting AsyncUpload to work from VS2013.  Is there a complete VS project I can download that shows how to upload a file from a web page?  Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo Valyavicharski
Telerik team
answered on 11 Dec 2014, 04:40 PM
Hi,

There are many online demos here: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/overview/defaultcs.aspx

This is the minimum code that is needed for file uploading:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadAsyncUpload runat="server" ID="upload" TargetFolder="~/Uploads"></telerik:RadAsyncUpload>
        <telerik:RadButton ID="rbSubmit" runat="server" Text="Submit"></telerik:RadButton>
    </form>
</body>
</html>

Sample project can be downloaded from github.

Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AsyncUpload
Asked by
weyer
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or