You may experience difficulties trying to upload files with ajaxified controls. For example using the standard <INPUT type=file> on AJAX request the uploaded files items will be empty.
Indeed, there are browser restrictions and XmlHttpRequest object limitations which makes uploading files through AJAX requests impossible. Thus, if you want to use Telerik RadAjax controls with a page, where a control perform uploading files, this control should make regular post-backs instead.
In a typical scenario you may have the whole page (or a part of it) nested within an AJAX Panel. In this case you have to manually exclude from ajaxifying the control, which is implemented to upload files. Detailed information how this could be achieved may be found here.
Using AJAX Manager in a page, where files are uploaded, should not be a problem. You should only take care of not setting the correspondent control as ajaxified in Manager's AjaxSettings.
A working application of Uploading Files could be found in Telerik RadAjax live examples:
http://www.telerik.com/demos/aspnet/Ajax/Examples/Common/FileUpload/DefaultCS.aspx
An integration AJAX Telerik RadUpload example is also available online:
http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/Ajax/Upload/DefaultCS.aspx
 |
When you instantiate file upload control through ajax call (e.g. set Visible="true" or control is nested in template control) you will need to manually add enctype="multipart/form-data" to the form as our ajax controls (MS Ajax as well) do not update the form tag. |