0

I know that AjaxFileUpload is asynchronous, but is there a work around to get the control to see the value of a text box on the same form?

I would like to have the text box for the user to type in the description of the uploaded file, but in the OnUploadComplete event handler, the control basically sees nothing. I hope there is a workaround.

user79284
  • 175
  • 1
  • 2
  • 18
  • I think you can only `get` the filename in code from the upload control; there's no setter. – wazz Nov 08 '17 at 05:24

1 Answers1

1

I think you can try this:

Set AutoPostBack for the DropDownList to true and handle the SelectedIndexChanged event to set the selected value in Session. Then consume the Session value in OnUploadComplete event.

Sea Charp
  • 288
  • 1
  • 6