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

Thread is closed for posting
4 posts, 0 answers
  1. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 14 Dec 2011 Link to this post

    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.
  2. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 15 Dec 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 15 Dec 2011 Link to this post

    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.
  5. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 15 Dec 2011 Link to this post

    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
Back to Top