DotNetNuke – FileUploadControl Danger!

ppl-wom-027 A couple of days ago I was working with a client who was having trouble using the File Upload Control from within a DotNetNuke module.

The problem we were seeing was that although all the code had been written correctly and looked just like every other implementation of the code I had ever used when the server side tested to see if a file had been uploaded, the file was not there… even though we had just uploaded a file.

What The Expletive?

A search of Google showed that the FileUpload control doesn’t work with the Update Panel. So I asked the client, “Are you using the Update Panel?” No, he wasn’t. Odd, it sure is acting like he is.

As things turned out he was using the Update Panel, only he didn’t know he was because this is DotNetNuke we are using. In DotNetNuke all you have to do to use an Update Panel, and in fact all you SHOULD do is to tell DotNetNuke that your module is going to use the Update Panel is to check the “Partial Rendering” check box when you define the module under module definitions.

So if you are having a problem with the FileUpload and haven’t checked the module definitions yet, go there now. Bet you it’s checked. Uncheck it and you’ll be able to use the file upload control.

 


Other post in DotNetNuke - Module Development

Other Related Items:

DotNetNuke For DummiesDotNetNuke For DummiesDo you want to develop Web sites without the help of a programmer? Lucky for you there’s DotNetNuke, a content management system that allows you to ... Read More >
Professional DotNetNuke 5: Open Source Web Application Framework for ASP.NET (Wrox Programmer to Programmer)Professional DotNetNuke 5: Open Source Web Application Framework for ASP.NET (Wrox Programmer to Programmer)DotNetNuke creator Shaun Walker leads this superlative author team of MVPs while delivering the latest update of a bestseller. They offer complete cov... Read More >

Related Post

3 Responses to “DotNetNuke – FileUploadControl Danger!”

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor