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  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Images in custom Modules
Previous Previous
 
Next Next
New Post 1/30/2006 6:49 AM
User is offline Nuno Costa
6 posts
10th Ranked


Images in custom Modules 

Hi,
i'm starting some module development. I'm starting with a simple module thas has some image buttons. The thing is... after instalation and after adding a module to a blank page, i can't see the pictures! What is the correct path for the images? In the root of the portal? In the module root?

Thanks

Nuno Costa

 
New Post 1/30/2006 8:52 AM
User is offline Michael Flanakin
994 posts
www.michaelflanakin.com
7th Ranked




Re: Images in custom Modules 
To access the root images directory, use ~/Images. For instance, ~/Images/Spacer.gif for the Spacer.gif image. If you want to use an image from your directory, simply use the relative path from the control. For instance, if the directory your control is has an Images directory with a CheckAll.gif image, then use the Images/CheckAll.gif path. You will have to set your images' runat property, tho (runat="server").

If you need to obtain a control-relative URL, you can do so from code by using the controls ResolveUrl() method.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post 1/31/2006 8:56 AM
User is offline steve conard
95 posts
10th Ranked


Re: Images in custom Modules 

This is sort of related.

I have created a custom module for dnn.  On the module there are two custom user controls: c1, c2.  If I am in a postback event on c2, how do I use find control to find c1?

            For Each objControl In Me.Parent.Controls
                strname = objControl.ID.ToString
            Next

The above will return the name of c2 but never finds c1.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Images in custom Modules
 


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.

 


Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com

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