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

LVL 8
CamilliaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.