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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsUse of portal:url controlUse of portal:url control
Previous
 
Next
New Post
3/25/2009 11:34 AM
 

I don't know where to put the piece of code that Dario Rossa provided. I want to collect the information of file when user clicks upload. However, i don't know which event url control provides to do it. I can make a new button and check it in button event. However, it is not the good way to do. Please help me.

 
New Post
6/16/2009 10:49 AM
 

Hi,

I wonder if there is any way to fix the file location or not. For example, I want to all uploaded files will be in Portals/0/MyFolder.

 
New Post
11/17/2009 9:21 AM
 

Hi,

 
I'm using DNNs built in URLControl in my Edit Control:
 
<%@ Register TagPrefix="Portal" TagName="URL" Src="~/controls/URLControl.ascx" %>
...
<Portal:URL ID="ctlImageFile" runat="server" ShowTabs="false" ShowUrls="false" UrlType="U" ShowTrack="false" ShowLog="false" Required="false" />
 
I changed the UrlType fom "F" to "U" so that I can store the ctlImageFile.Url as a file path (for example: " /Portals/0/community_title.gif") instead of "FileId=x".
 
The problem is that I want to preselect the URLControl with the existing value when the page is loaded:
 
ctlImageFile.Url = item.ImageFile;
 
As long as the image file is located in the portal root directory this seems to work OK.
 
But when the image file is located in a subdirectory of the portal root directory (for example: " /Portals/0/Images/community_title.gif") it doesn't work anymore.
 
I guess this is because the folder dropdownlist cannot be set?
 
Or can I convert a file path to the form "FileID=x"?
 
Is there a way to fix this?
 
Thanks in advance!
 
New Post
11/17/2009 10:14 AM
 

Hi,

You can convert a file into it's appropriate URL by using the FileInfo and FileController objects.  Strip out the file id (x) from FIleID=x then find the FileInfo object via the FileController.  You can then use the PhysicalFilePath property to get your reference info.


-- Scott Allender
http://www.scottallender.com
 
New Post
11/17/2009 10:42 AM
 

 Hi Scott,

 

Thanks, I know I can convert FileID=x to a file path,

but can I also convert a File Path to the form FileID=x?

 

Thanks

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsUse of portal:url controlUse of portal:url control


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