Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7671123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:58:43+00:00 2026-05-31T15:58:43+00:00

first time asking a question here. I’m making a DNN module and in the

  • 0

first time asking a question here.

I’m making a DNN module and in the Setting.ascx I’m trying to add any form of FileUpload in there. I’m successful at adding ASP’s FileUpload as well as Telerik’s RadUpload, but when I click a button I added to save and examine the uploaded the file it’s empty and no longer holding any data. I thought I was coding it wrong at first, but after adding it into the View.ascx instead it works perfectly. Of course that’s not where I want it to be.

I believe the problem might be how the Setting.ascx works in DNN. I believe it’s using a form of AJAX to display it so that might be interfering. Hard to say though. While I’m at it can anyone confirm that Setting.ascx is using AJAX and that button clicks cause asynchronous postbacks? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:58:44+00:00Added an answer on May 31, 2026 at 3:58 pm

    You’re right with your thought that the form uses AJAX (formerly via UpdatePanel, now via RadAjaxPanel in DNN 6.x), and that’s what’s interfering with the upload. In most scenarios, you’d just switch to a regular postback by calling ScriptManager.RegisterPostBackControl, but in the settings case, you don’t have a direct reference to the LinkButton that saves the settings.

    You’ll probably need to add your own button to the form to do the upload after the user has selected the file. DNN’s own UrlControl uses a system like that, where there’s an Upload button next to the Browse button. DNN also has a newer DnnFilePicker control, which might also encapsulate what you want. You’ll just need to add an @ Register directive to use those. For example:

    <%@ Reference tagPrefix="dnn" tagName="UrlControl" Src="~/controls/URLControl.ascx" %>
    <%@ Reference tagPrefix="dnn" Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" %>
    
    <dnn:UrlControl runat="server" ID="FileUpload" 
                    ShowLog="false"
                    ShowNewWindow="false"
                    ShowTrack="false"
                    ShowImages="false"
                    ShowNone="false"
                    ShowTabs="false"
                    ShowUrls="false"
                    ShowUsers="false"
                    ShowFiles="false"
                    ShowUpLoad="true" />
    
    <dnn:DnnFilePicker runat="server" ID="FilePicker"
                       FileFilter="jpg,png,gif" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First time poster here. A quick question about setting up a loop here. I
First time asking a question here. Usually I can find my answer without having
this is my first time asking a question here so apologies if I am
First time asking a question here. I have a question, I have a UIImageView
this is my first time asking a question here so I hope I am
First time asking a question here so thanks in advance for your time. I
Well this is not the first time im asking these question here but I
This is the first time i'm asking a question here at stack overflow so
For the first time, I am asking a little bit of help over here
This is my first time asking a question, please be gentle! I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.