upload file to server immed after user selects the file

Discussion in 'ASP .Net' started by Steve Richter, May 25, 2007.

  1. How do I enable the file upload process to start as soon as the user
    selects the file?

    currently, I have two INPUT controls on the form. One is type=file and
    the other type=submit:
    <P><INPUT id="ScriptFile" type="file" runat="server"></P>

    <P><INPUT " id="buttonRun" type="submit"
    value="Upload and Run" runat="server"></P>

    To upload, there is a two step process. The first is to select the
    file, the second to click the submit button. I would like the
    selection of the file to also submit the form back to the server.

    thanks,

    -Steve
     
    Steve Richter, May 25, 2007
    #1
    1. Advertising

  2. Steve Richter

    Masudur Guest

    On May 25, 8:47 am, Steve Richter <> wrote:
    > How do I enable the file upload process to start as soon as the user
    > selects the file?
    >
    > currently, I have two INPUT controls on the form. One is type=file and
    > the other type=submit:
    > <P><INPUT id="ScriptFile" type="file" runat="server"></P>
    >
    > <P><INPUT " id="buttonRun" type="submit"
    > value="Upload and Run" runat="server"></P>
    >
    > To upload, there is a two step process. The first is to select the
    > file, the second to click the submit button. I would like the
    > selection of the file to also submit the form back to the server.
    >
    > thanks,
    >
    > -Steve


    Hi

    please check out this post
    http://munnacs.blogspot.com/2007/05/aspnet-file-upload-control-using-with.html
    might help you

    Thanks
    Masudur
     
    Masudur, May 25, 2007
    #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. Dirk Meusel
    Replies:
    1
    Views:
    3,074
    Dirk Meusel
    Aug 19, 2003
  2. Luis Esteban Valencia

    Make a DataGrid row editable after user selects the row

    Luis Esteban Valencia, Jan 12, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    364
    Luis Esteban Valencia
    Jan 12, 2005
  3. =?Utf-8?B?Q2hyaXMgTGFuZQ==?=

    Debugging with Command window in Immed mode

    =?Utf-8?B?Q2hyaXMgTGFuZQ==?=, Feb 28, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,805
    Scott Allen
    Feb 28, 2005
  4. BusyBoy
    Replies:
    2
    Views:
    631
    =?Utf-8?B?TGVvbiBNYXluZQ==?=
    Oct 31, 2006
  5. gene tan
    Replies:
    0
    Views:
    107
    gene tan
    Nov 23, 2004
Loading...

Share This Page