3

In ASP.NET, I am using fileupload control to upload files to my server as everyone. But I have two buttons on my screen, the first one is the filuplooad's button which opens up the "File Selection Screen", the second button is to submit the selected file to upload. I dont want the the second button.

What I want is, I want the user to click the first button, when the user selects the file and closes that screen, I want it to be uploaded automatically. I dont want the user to do the clicking...

How can I do it with javascript or C#?

Arif YILMAZ
  • 5,210
  • 24
  • 87
  • 174
  • I found this code – Arif YILMAZ Mar 28 '13 at 13:37
  • possible duplicate of [How do I submit a "file" input without submit button with JavaScript?](http://stackoverflow.com/questions/1904168/how-do-i-submit-a-file-input-without-submit-button-with-javascript) – Blachshma Mar 28 '13 at 13:54

1 Answers1

2

Another way to do it with AsyncFileUpload control from AjaxControlToolkit.

Looks like this is duplicate question from here.

Community
  • 1
  • 1
Eugene Pavlov
  • 668
  • 5
  • 18