user2478115
user2478115

Reputation: 141

UpdatePanel doesn't allow code to be executed

I am working on a project in asp.net and I added a FileUpload, that is going to add the file into a specific folder in my project.

But the problem is that if I put the Button that will execute the code by click, into the UpdatePanel, it doesn't save the file into the folder!! It also doesn't show any errors, it just dosn't execute the code:(

How can I execute the code, even if the button is inside the UpdatePanel?

Upvotes: 0

Views: 112

Answers (1)

Alicia
Alicia

Reputation: 1152

ive had this problem in the past , it's due to the fact that the FileUpload control does not work with asynchronous postbacks, and therefore does not work from within an AJAX UpdatePanel. I found this aticle on the codeproject very helpful : CodeProject-UpdatePanel

Upvotes: 2

Related Questions