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

XmlHttpPanel FileUpload issue

1 Answer 42 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
Soumya Joseph
Top achievements
Rank 1
Soumya Joseph asked on 15 May 2010, 11:07 AM
Hi,
I have an issue with XmlHttpPanel.Here I need to upload a file using FileUpload control.When i try to access the FileUpload from the ServiceRequest event of XmlHttpPanel the FileName of FileUpload(FileUpload1.FileName)becomes null.We have the same issue with RadAjaxManager also.Right now I need a solution for  XmlHttpPanel.So please help me with a solution.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 19 May 2010, 12:41 PM
Hello Soumya,

I believe the XmlHttpPanel is not suitable for this specific scenario, because it does not perform postbacks - it either uses ASP.NET client callbacks,  or WebServices to update its content. In this Microsoft help article, it is clearly stated that a postback is needed: Typically, the SaveAs method is called in an event-handling method for an event that raises a post back to the server.
I am not sure whether it is possible to upload files using Ajax and FileUpload control, but you could use our RadAsyncUpload control to achieve the desired goal: http://demos.telerik.com/aspnet-ajax/upload/examples/async/monitorprogress/defaultcs.aspx.

Regards,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
XmlHttpPanel
Asked by
Soumya Joseph
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or