Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...FileUpload Control not working in DNN 5.0.1FileUpload Control not working in DNN 5.0.1
Previous
 
Next
New Post
6/3/2009 11:03 AM
 

Hey Everyone, I'm having an issue with a custom module that I'm building. In the Edit control I'd like to be able to upload an image and have the url stored with the entry in the database. I'm tyring to use the <asp:FileUpload> control to do so but something isn't happening when I hit the update button to add the entry. on the postback the property fileUpload1.HasFile always comes back false. When I do the same operation outside of DotNetNuke it works just fine and the hasFile property comes back true. Any particular reason why this operation would be different for DNN?

This was similar for another standard asp control that I was doing something with before but I don't remember which one it was. If I find it again I'll definitely post it.

Anyone else have a similar issue with some of the standard asp.net controls?

 
New Post
6/3/2009 1:20 PM
 

I'd suggest to use DotNetNuke WebUpload control, which will manage the file to be included in DNN file system as well.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/4/2009 10:41 AM
 

Where is that control located? I don't see it in the controls folder or anywhere in the DotNetNuke.UI.UserControls or Web Controls.

 
New Post
6/8/2009 10:00 AM
 

Does anyone know the syntax to use for the WebUpload control that sebastian mentioned above? I can't find any information on it anywhere.

 
New Post
6/8/2009 11:57 AM
 

Something like this should get your started in the right direction, this is a snippet from the 'Admin > Site Settings' control that uploads the logo to your website....

<%@ Register TagPrefix="dnn" TagName="URL" Src="~/controls/URLControl.ascx" %>

...

<dnn:URL ID="ctlLogo" runat="server" style="width:550px" ShowUrls="False" ShowTabs="False" ShowLog="False" ShowTrack="False" Required="False" />
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...FileUpload Control not working in DNN 5.0.1FileUpload Control not working in DNN 5.0.1


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out