Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Another URLControl question...
Previous Previous
 
Next Next
New Post 9/12/2008 10:47 AM
User is offline Nuzzi
18 posts
10th Ranked


Another URLControl question... 

Hello,

 

I have gone through the forums and found a lot of help about this control, but I am looking for an easy way around what I have to do.  I am using it only to grab a file from the portal.  I want to get a relative path to the file so it can be used in a Image control as the image url.  

 

Currently, I am taking this route:

            DropDownList dl1 = ((DropDownList)ctlURL.FindControl("cboFolders"));

            DropDownList dl2 = ((DropDownList)ctlURL.FindControl("cboFiles"));

            string str = "portals/" + PortalAlias.PortalID.ToString() + "/" + dl1.SelectedItem.Text + dl2.SelectedItem.Text;

 

This, however, will fail with a file in the root.  Is there an easier way?  I don't want to use LinkClick, because i don't believe it will work (admittedly haven't tried).

Thank you,

John

 

 

 
New Post 9/13/2008 3:35 AM
User is offline Sebastian Leupold
15159 posts
www.deutschnetnuke.de
1st Ranked












Re: Another URLControl question... 

why don't you use the URL control? please check out Links module as an example.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Another URLControl question...
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com
DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP