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

[Solved] RadAjaxManager + GridView + FileUpload

1 Answer 162 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
e-statik
Top achievements
Rank 1
e-statik asked on 04 Jun 2009, 08:31 AM
Hi
I have a problem with uploading files with ajaxified GridView (RadAjaxManager). FileUpload control (asp:FileUpload) is placed within EditItemTemplate of the GridView. I'm using OnRequestStart event of the RadAjaxManager to disable ajax when FileUpload control is not empty. It works - i can see my page totally reloading. But while debugging server code i see my FileUpload is still empty and Request.Files.Count = 0 also.
When i completly disable ajax on the page - everything works fine.

What do i do wrong?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 08 Jun 2009, 11:01 AM
Hello e-statik,

Indeed, there is an issue with FileUpload control and RadAjax when the FileUpload is initialy not available on the page. In this case you can try the below workarounds:

  • Use RadUpload instead of ASP:FileUpload.
  • Add a hidden FileUpload on the page like this:
<div style="display:none">  
    <asp:FileUpload ID="FileUpload1" runat="server" /> 
</div> 

Give it a try and let mek now if any issues arise.

Sincerely yours,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
e-statik
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or