Ajax (Atlas) and FileUpload

  • Thread starter Thread starter Code Monkey
  • Start date Start date
C

Code Monkey

I've got a FileUpload control placed on a web page. The control is
embedded inside an UpdatePanel.

It uploads the file OK, but....


Load the page, click on a button to show the upload panel. Select a
file, click the upload button. File NOT uploaded.

Select the file again, and click the upload button, THEN and ONLY then
is the file uploaded.

WHY?

How can I get the file to upload the first time?
 
Hello Code,

FileUpload doesn't work normally win UpdatePanel. It's behaviour by design

see there http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx


---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


CM> I've got a FileUpload control placed on a web page. The control is
CM> embedded inside an UpdatePanel.
CM>
CM> It uploads the file OK, but....
CM>
CM> Load the page, click on a button to show the upload panel. Select a
CM> file, click the upload button. File NOT uploaded.
CM>
CM> Select the file again, and click the upload button, THEN and ONLY
CM> then is the file uploaded.
CM>
CM> WHY?
CM>
CM> How can I get the file to upload the first time?
CM>
 
Hi,


Unfortunatelly FileUpload does not work fine with an UpdatePanel. So you
better get it outside of it.
 
Back
Top