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#?

2

1 Answer 1

2

Another way to do it with AsyncFileUpload control from AjaxControlToolkit.

Looks like this is duplicate question from here.

Sign up to request clarification or add additional context in comments.

1 Comment

unfortunately, I cannot use the ajaxcontroltoolkit for some reasons :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.