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  |  

Engage Software - Training Partner for DotNetNuke
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to get container path from module?
Previous Previous
 
Next Next
New Post 5/8/2008 6:00 AM
Resolved
User is offline onishiro
132 posts
9th Ranked


How to get container path from module? 
Modified By onishiro  on 5/8/2008 9:01:12 AM)

I need to include a image from my module, the problem is that the image is different depending on the container, it's always called the same, but it's a different image every time so that the colors match.

How can I include the correct image? it's in the images/ subfolder of my containers.

Thanks in advance.

 
New Post 5/8/2008 4:45 PM
Accepted Answer 
User is offline William Severance
541 posts
www.wesnetdesigns.com
8th Ranked




Re: How to get container path from module? 

The ModuleConfiguration property of PortalModuleBase from which your module inherits provides two properties of type string:

Me.ModuleConfiguration.ContainerPath       - returns the relative path (including ApplicationName) to the container's folder

Me.ModuleConfiguration.ContainerSrc          - returns the relative path (including ApplicationName) to the container's folder and the filename of the container

Also, if you need to obtain a reference to the actual container control you can use the following:

Dim ctnr As System.Web.UI.UserControl = CType(Me.ContainerControl, System.Web.UI.UserControl)


Bill, WESNet Designs
 
New Post 5/9/2008 2:52 AM
User is offline onishiro
132 posts
9th Ranked


Re: How to get container path from module? 

Thanks a lot, just what I was looking for :)

 William Severance wrote

The ModuleConfiguration property of PortalModuleBase from which your module inherits provides two properties of type string:

Me.ModuleConfiguration.ContainerPath       - returns the relative path (including ApplicationName) to the container's folder

Me.ModuleConfiguration.ContainerSrc          - returns the relative path (including ApplicationName) to the container's folder and the filename of the container

Also, if you need to obtain a reference to the actual container control you can use the following:

Dim ctnr As System.Web.UI.UserControl = CType(Me.ContainerControl, System.Web.UI.UserControl)

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to get container path from module?
 


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.

 


PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult

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