Ajax (Atlas) and FileUpload

by Code Monkey on 10/31/2007 6:13:00 PM 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?

 

Re: Ajax (Atlas) and FileUpload

by Michael Nemtsev, MVP on 11/1/2007 12:16:00 PM 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>


 

Re: Ajax (Atlas) and FileUpload

by Ignacio Machin ( .NET/ C# MVP ) on 11/1/2007 7:04:00 AM Hi,


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

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"Code Monkey" <dlynes2005@gmail.com> wrote in message
news:1193904785.528598.150100@50g2000hsm.googlegroups.com...
> 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?
>