Re: FileUpload in ASP.NET Ajax

Tech-Archive recommends: Fix windows errors by optimizing your registry



You can not use fileupload control with AJAX
Update panel is pure JavaScript and it's not possible (due to security) for
JavaScript to grab file from your local hard drive and submit it to the
server.

So you will have to make normal post back to upload a file. Just move it out
of the UpdatePanel or make an
"upload" popup with Dialog extender and IFRAME.

George.

"vital" <vital.maddali@xxxxxxxxx> wrote in message
news:3631f1ba-4cd2-454b-a652-4bf27c064d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have a User control which has a fileupload control. With the
requirements I placed the user control in a UpdatePanel of ASP.NET
Ajax and the fileupload.postedfile.filename giving error.

I read some articles that Ajax is not compatible with fileupload. I
want to know the solution or workaround for this.

Thanks


.



Relevant Pages

  • Re: FileUpload in ASP.NET Ajax
    ... I have a User control which has a fileupload control. ... I read some articles that Ajax is not compatible with fileupload. ... Elaborating on why you placed the user control in UpdatePanel might ...
    (microsoft.public.dotnet.framework.aspnet)
  • FileUpload in ASP.NET Ajax
    ... I have a User control which has a fileupload control. ... requirements I placed the user control in a UpdatePanel of ASP.NET ... I read some articles that Ajax is not compatible with fileupload. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: PanelUpdate and Form Position
    ... As for the ASP.NET AJAX updatepanel, ... It will not maintain scroll position. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: error Could not load type System.Web.UI.IScriptManager
    ... Ya scriptmanager is the first control before updatepanel ... -- bruce ... using the ajax asp.net controls like updatepanel. ...
    (microsoft.public.dotnet.framework.aspnet)
  • AJAX - How to set the Text of a Literal control outside of the UpdatePanel?
    ... The problem is that I would like the order summary information to be outside of the UpdatePanel so it is further down the page, below the Order button that submits the whole page. ... However, if I move the Literal controls outside of the UpdatePanel, they don't get updated by the AJAX code. ...
    (microsoft.public.dotnet.framework.aspnet)