upload file to server immed after user selects the file

S

Steve Richter

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
 
M

Masudur

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top