Ajax (Atlas) and FileUpload

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?
 
M

Michael Nemtsev, MVP

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>
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top