Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image pathing in user controls
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Image pathing in user controls
Divers
Thread ID:
00798637
Message ID:
00798637
Vues:
50
I'll bet this is an easy question....

My application directory structure is as follows:

application_root
->images
->usercontrols
ASPX files go in root

I need to reference images in my user controls (so the pathing looks like "../images/someimage.gif") in my user control source.

When I include the user control on a page and try to run it, the page (obviously) cannot find the image (since ../images takes me outside of my application root).

My question is this, is there some way in the src="" attribute on my HTML controls to specify an application root relative path so that I can see the graphics in UserControl design mode AND when I run my application?

Please say there is a way to do this....

Mary Hintermeier
RSA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform