Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

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

SOLUTION
Avatar of Alpesh Patel
Alpesh Patel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yep, like i said, this article begins with "RadUpload cannot upload files using AJAX calls. " :(
Avatar of Camillia

ASKER

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.
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 :)