0

I have a FileUpload control in a Wizard control. When I click the finish button, I set a breakpoint and I can see the filepath selected in the FileUpload control as expected.

However, when I Ajaxify this same Wizard, the value in the FileUpload control is always null at this breakpoint, as if a file hasn't been selected.

I know there's a limit where a FileUpload control can't keep its value after postback, but I have the breakpoint selected on the postback and would still expect to see the value.

jonsca
  • 10,218
  • 26
  • 54
  • 62
Mike Cole
  • 14,474
  • 28
  • 114
  • 194

2 Answers2

1

Please check this thread: File uploading in AJAX updatepanel without full postback

Community
  • 1
  • 1
Muhammad Akhtar
  • 51,913
  • 37
  • 138
  • 191
0

You need a full postback to use the FileUpload control, try adding the FileUpload control to the PostBackTrigger section in the UpdatePanel.

See: Problem using the ASP.NET FileUpload control in an UpdatePanel?

Community
  • 1
  • 1
Eduardo Campañó
  • 6,778
  • 4
  • 27
  • 24