How do you get the input file type to automatically re-enable in ASP.NET

I have an ASP.NET Webform, and inside the form I have an input file type. I would like the form to be published immediately after the user selects the file.

I have a server side function that I would call, say, UploadedFile ()

What is the easiest way to do this?

+4
source share
1 answer

If you use jQuery, you can do it like this: http://www.bitsandpix.com/entry/jquery-file-upload-auto-submit-using-jqueryparentsexp/

Edit: This, of course, applies only to the dispatch part. You should FileUpload use FileUpload instead of input type=file to enable the correct server-side event.

+3
source

Source: https://habr.com/ru/post/1303810/


All Articles