Home » DotNetNuke - Module Development » DotNetNuke – FileUploadControl Danger!

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

Like this Article? Subscribe to get every article sent to your email.

Related Post

  • DotNetNuke Modules – Creating Base ModulesDotNetNuke Modules – Creating Base Modules Now that we have DotNetNuke installed into Visual Studio we can go ahead and create our first modules. Actually, creating the modules is pretty simple. But it is even easier to do it […]
  • DotNetNuke Modules – PortalModuleBaseDotNetNuke Modules – PortalModuleBase We've been through most of the basics now with respect to creating the View module of the DotNetNuke module set.  We will be moving on to the Settings module next.  But before we do, we […]
  • DotNetNuke Modules – Module SettingsDotNetNuke Modules – Module Settings Since each instance of a module that we put on a page should be able to have it's own configuration information, it is necessary to have some place that will allow us to configure […]
  • DotNetNuke Modules – CachingDotNetNuke Modules – Caching A couple of days ago I showed a method for finding a module on another page. Néstor Sánchez pointed out that on a large site, this could cause a significant performance issue. He […]
  • DotNetNuke Modules – Labels w/ no HelpDotNetNuke Modules – Labels w/ no Help While the bulk of the labels you use on a module will be DotNetNuke labels, occasionally you want to be able to put text on the screen that doesn't need context help and doesn't need to be […]

About Dave Bush

Dave Bush is a Full Stack ASP.NET developer. His commitment to quality through test driven development, vast knowledge of C#, HTML, CSS and JavaScript as well as his ability to mentor younger programmers and his passion for Agile/Scrum as defined by the Agile Manifesto and the Scrum Alliance will certainly be an asset to your organization.

One Pingback/Trackback

  • Pingback: Dew Drop - February 26, 2009 | Alvin Ashcraft's Morning Dew()

  • sacho


    i tried your solution but it wont work in my scenario. i hv an ajax tab control in which fileupload control is placed. so when i unchecked the partial rendering checkbox, ajax tab control it self not loading. need to do any thing else or this combination (dnn+ajaxtab+fileupload) wont works?

  • Dave

    Works for us.