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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Images in custom Modules
Previous Previous
 
Next Next
New Post 1/30/2006 5: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 7: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 7: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.

 


Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com
Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com
DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com

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