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

how to get files from RadUpload in server side with enable ajax loading panel

3 Answers 101 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 14 Dec 2011, 08:22 PM
Hi,

I am using RadUpload with ajax enabled. so in server side i am using the code RadUpload1.UploadedFiles.Count   so result always comes 0.

How to get file in server side with ajax enable.  please give me a tips for this one.


Thanks,
Dhamu.

3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 15 Dec 2011, 01:10 PM
Hello Dhamodharan,

Could you provide the code of the page you are using the RadUpload on, and also the code-behind file, so I can investigate the problem locally.

All the best,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Dhamodharan
Top achievements
Rank 1
answered on 15 Dec 2011, 01:16 PM
Hi,

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="tblSet">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tblSet" LoadingPanelID="LoadingPanelBasicDesign" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

<table id="tblSet" runat="server">
           
            <tr>
                <td>         
                    <telerik:RadUpload runat="server" ID="RadUpload2" OnClientAdded="addTitle" ControlObjectsVisibility="None" EnableFileInputSkinning="false"  />                 
                    <telerik:RadButton ID="Button2" runat="server" Text="Upload"  />          
                </td>
            </tr>
        </table>

code behind

 Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

 Dim uploadCnt As String = RadUpload2.UploadedFiles.Count

 End Sub

when using ajax loading panel uploadCnt  always comes 0. please how to get radupload file when using ajax loading panel..

Please let me know,

Thanks,
Dhamu.
0
Bozhidar
Telerik team
answered on 15 Dec 2011, 05:42 PM
Hi Dhamodharan,

RadUpload cannot upload files using AJAX calls (this is a limitation of the XmlHttpRequest component, used in all AJAX frameworks for asynchronous calls to the application) in order to upload a file you should perform a full page postback. 

If you want to take advantage of the AJAX functionality, you should use RadAsyncUpload.

Regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Upload (Obsolete)
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Dhamodharan
Top achievements
Rank 1
Share this question
or