FileUpload Control

Discussion in 'ASP .Net' started by bthumber, Jun 21, 2010.

  1. bthumber

    bthumber Guest

    I trying to save a file using the FileUpload control but it tells me that
    there is no file. Please see code:
    void SaveFile()
    {
    if (FileUpload1.HasFile) // fails here
    {
    string filepath ...
    }

    Is there something else I need to do first???
     
    bthumber, Jun 21, 2010
    #1
    1. Advertising

  2. bthumber

    Eric Guest

    You may want to take a look at the AJAX AsyncFileUpload control.

    http://www.asp.net/ajaxlibrary/act_AsyncFileUpload.ashx

    It's much better than the standard file upload control.

    rg,
    Eric


    "bthumber" wrote:

    > I trying to save a file using the FileUpload control but it tells me that
    > there is no file. Please see code:
    > void SaveFile()
    > {
    > if (FileUpload1.HasFile) // fails here
    > {
    > string filepath ...
    > }
    >
    > Is there something else I need to do first???
     
    Eric, Jun 23, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Uncle Ben

    ASP.NET 2.0 FileUpload control

    Uncle Ben, Mar 23, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    3,813
    Bruce Barker
    Mar 23, 2005
  2. Eric

    FileUpload control.

    Eric, Dec 26, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    5,837
    Ankho
    Nov 3, 2009
  3. Nathan Sokalski
    Replies:
    1
    Views:
    776
    Mark Rae
    Jan 11, 2007
  4. eamon

    FileUpload Control & Image Control

    eamon, Aug 4, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    220
    eamon
    Aug 4, 2005
  5. Nathan Sokalski
    Replies:
    0
    Views:
    276
    Nathan Sokalski
    Jan 11, 2007
Loading...

Share This Page