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...Building ExtensionsBuilding ExtensionsModulesModulesUrl Control "Choose File" button not visibleUrl Control "Choose File" button not visible
Previous
 
Next
New Post
3/26/2013 11:36 AM
 
Hi,

I have a problem with the Url Control in DNN 7. When I use it in a module and click the "Upload New File" button, I am not able to browse for the file because the "Choose File" button is not showing. I have followed the instructions on the Url Control wiki page (http://www.dotnetnuke.com/Resources/Wiki/Page/dnnurlcontrol.aspx) and I have set the ShowUpload property to true. I had this working in DNN 6.2. Anyone who has a clue?

/Fredrik
 
New Post
3/26/2013 12:38 PM
 
I have seen cases where a skin issue causes the button style to not display. Have you looked at the generated HTML to see if the button is actually there, just not "visible".

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
3/27/2013 9:18 AM
 
Yes, I have checked the HTML and it is simply not there. I checked other modules where it works and the missing parts are the two span tags with class="dnnInputFileWrapper" and class="dnnSecondaryAction" surrounding the file input tag.


/Fredrik
 
New Post
8/4/2013 10:26 AM
 

Hi,

I'm on DNN 7.0.3 and I've hit this issue again, after previously fixing it and forgetting what the fix is - d'oh!

This time, I'll commit my answer to the forum to A) help out where I can, and B) so that I can find it again when I forget, again.

 

As far as I can tell the answer lies in a file called "~/Resources/Shared/scripts/dnn.jquery.js". This file generally contains all the javascript/jquery components of a great many DNN controls.

The file has a self calling component that calls the "dnnInitCustomisedCtrls", it also registers the call for the ASPX page manager to call on request_end - which means that it always get's refired after a Webforms AJAX request completes.

In my current project, I simply use DotNetNuke 7's Client Resource Management library to include the script, this requires tow lines at the top of your ASCX file:

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>

<dnn:DnnJsInclude runat="server" FilePath="~/Resources/shared/scripts/dnn.jquery.js" />


The first line registers the ClientResourceManager for use, and the latter includes your script. For those not in the know, you can use this method to include your own script files just once, no matter how many of your modules are used on a page, it works great.

Since the ClientResourceManager can be used within any module, I daresay that the URLControl should include this code itself, and that's what needs to be done to make it work properly.

Kind Regards,

Mark Rabjohn
Integrated Arts Limited

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUrl Control "Choose File" button not visibleUrl Control "Choose File" button not visible


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