The Upload control, when used, will send a UploadedEventArgs, in which you can find a property named files that returns a collection of HttpFiles, containing the ones the user has just uploaded. You can do pretty much whatever you want with those files as long as you have access to that eventargs, and that’s where my problem lays.
I have a button that restarts, or at least that’s the plan, the whole form. The problem, however, is that I can’t delete any file uploaded to the Upload control, because it doesn’t allow you to access the collection from outside.
Hi Pablo,
you can pass the members to a collection that is instantiated at the form level.
If that does not solve your problem we´d need a test case to better understand your requirements and what you´re trying to achieve.
Best regards
Frank
Please login first to submit.