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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0no imagesno images
Previous
 
Next
New Post
4/9/2008 5:11 AM
 

William Severance wrote

It appears that you are using the image in an ImageButton control. When setting the ImageUrl property, you should be able to use either of these methods in the .ascx's file server control markup for ImageButton2:

ImageUrl="~/DesktopModules/gDocVisualiza/App_LocalResources/apagar.png"

i have

                       <asp:ImageButton ID="ImageButton2" runat="server"
                           ImageUrl="~/DesktopModules/gDocVisualiza/App_LocalResources/apagar.png"
                           style="width: 16px" ToolTip="Apagar" />

but when I install in dnn it changes...


Portugal
 
New Post
4/9/2008 11:42 AM
 

After seeing your reply that this still did not work I did a quick test with setting the ImageUrl. Here's what's happening:

IIS does not permit the serving of image files (including .jpg and .gif according to my test) out of the App_LocalResources folder. When the same image files were placed into an 'images' sub-folder of a module's folder, they appeared without a problem using the same pattern for the ImageUrl. Therefore I would suggest creating an images sub-folder, placing the image files into that sub-folder during the install, and referencing them in your control markup as follows:

ImageUrl="~/DesktopModules/gDocVisualiza/images/apagar.png"


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/11/2008 10:27 AM
 

Thanks. problem solved.


Portugal
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0no imagesno images


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