Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
script
type
=
"text/javascript"
>
function filesUploaded(sender, args) {
$find("ajaxManager").ajaxRequest("upload");
}
</
telerik:RadAjaxManager
runat
"server"
ID
"ajaxManager"
OnAjaxRequest
"ajaxManager_AjaxRequest"
AjaxSettings
telerik:AjaxSetting
AjaxControlID
UpdatedControls
telerik:AjaxUpdatedControl
ControlID
"asyncUpload"
/>
telerik:RadAsyncUpload
OnClientFilesUploaded
"filesUploaded"
TargetFolder
"~/Uploads"
></
protected
void
ajaxManager_AjaxRequest(
object
sender, AjaxRequestEventArgs e)
{
if
(e.Argument ==
"upload"
)
foreach
(UploadedFile file
in
asyncUpload.UploadedFiles)
file.SaveAs(Server.MapPath(
"~/Uploads/"
) + file.FileName);