Problem with FileUpload control

Last post 09-09-2008 3:38 PM by vasireddybharathreddy. 5 replies.

Sort Posts:

  • Problem with FileUpload control

    02-12-2007, 1:51 AM
    • Member
      100 point Member
    • brandon1974
    • Member since 06-24-2004, 11:40 PM
    • Austin
    • Posts 26

    Hello everyone,

    I have a simple form with one FileUpload control for resumes. When I place the FileUpload into the Content Template of an UpdatePanel and submit the form, the PostedFile is null. When I take the FileUpload out of the UpdatePanel and submit the form, the PostedFile is there.

    What do I need to do in order to get access to the file being posted, if I'm using it in conjunction with the ajax.net controls?

    Many thanks in advance,
    Brandon Taylor

    Filed under: ,
  • Re: Problem with FileUpload control

    02-12-2007, 2:51 AM
    • Contributor
      3,498 point Contributor
    • MIB426
    • Member since 04-25-2003, 3:19 AM
    • Taiwan or Australia
    • Posts 849

    Hi

    in document, it said FileUpload is not compatible with updatepanel

    http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx

     

    James Wu (MIB426)
    .NET is only way to go
    MCP, MCSE, MCDBA, MCSD, MCAD
  • Re: Problem with FileUpload control

    02-12-2007, 5:15 AM
    • Contributor
      4,482 point Contributor
    • jodywbcb
    • Member since 03-12-2003, 11:52 AM
    • West Seattle,WA
    • Posts 985

    There have been some posted work arounds in the forums if you limit the search to the last month and search for fileupload here in the ajax forums.... http://msmvps.com/blogs/luisabreu/archive/2006/12/14/uploading-files-without-a-full-postback.aspx

     

    is one such link....

    -- jody
    My Blogs on .Net 2.0 and Ajax
    http://csk.wbcb.com
    http://ArtbyJody.com
  • Re: Problem with FileUpload control

    02-12-2007, 3:36 PM
    • Member
      100 point Member
    • brandon1974
    • Member since 06-24-2004, 11:40 PM
    • Austin
    • Posts 26

    Thanks to everyone that replied. I've got my form working, even though a postback is incurred. I had to register the button that submits the form as a trigger, and it will find the FileUpload control as usual.

    Brandon
     

  • Re: Problem with FileUpload control

    08-30-2007, 9:29 PM
    • Member
      12 point Member
    • barrysuku
    • Member since 05-23-2007, 12:02 AM
    • Posts 72

    Hi all am also facing same problem but all my controls are in formview.
    And i couldnt register my button as trigger in Update Panel.

    Button btnAdd = (Button)FormView.Controls[0].Controls[1].FindControl("btnAdd");

    UpdatePanel.Triggers.Add(btnAdd);

    this one not working.

     

  • Re: Problem with FileUpload control

    09-09-2008, 3:38 PM

    hi barrysuku,

      I am facing the same problem, did u got it.

    Thanks & Regards
    Bharth Reddy VasiReddy
Page 1 of 1 (6 items)