• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2583
  • Last Modified:

UpdatePanel - File Upload doesn't work with UpdatePanel

I'm using Telerik's RadUpload control. I have a lot more controls like textboxes, calendar, checkboxes, etc on the page.
It's a job site project.

When I wrap the entire page in an UpdatePanel, the file upload doesnt work. Doesnt upload a file. I step thru it and
i see it's hitting the code but nothing happens.

When I remove the updatePanel, i can upload fine..

How can I make this work? Should I NOT wrap the file-upload section in an UpdatePanel but wrap the rest of the page in an updatePanel?(dont like doing that tho)


<td align="left" valign="middle">
                 <telerik:RadUpload runat="server"  Skin="Vista"   MaxFileInputsCount="1" InitialFileInputsCount="1"
                     ControlObjectsVisibility="ClearButtons" AllowedFileExtensions=".doc,.docx,.pdf,.odt,.rtf" 
                     TargetFolder="~/hrtest" OverwriteExistingFiles="true"
                     TabIndex="16" ID="formUPLOAD"  ></telerik:RadUpload>
            
            </td>

protected void btnSubmitUpload_Click(object sender, EventArgs e)
    {

        if (formUPLOAD.UploadedFiles.Count > 0)
        {
            // this is all i have here. But it still does work without any more code.

        }


    }

Open in new window

0
Camillia
Asked:
Camillia
  • 3
2 Solutions
 
Alpesh PatelCommented:
0
 
xoperatorCommented:
Hi,

Unfortunately upload files doe's not work with AJAX which is being enabled when you wrap the upload file control with loading panel.

0
 
xoperatorCommented:
Yep, like i said, this article begins with "RadUpload cannot upload files using AJAX calls. " :(
0
 
CamilliaAuthor Commented:
hmmm, maybe  i should use another control. I think asp.net or Ajax has has another file upload control...or maybe I should just leave that file upload outside the updatepanel.
0
 
xoperatorCommented:
Yep, what you need to do is to leave the control outside of the ajax loading panels.

Please consider closing this session giving us the deserved points.

Thank :)  
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now