>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
Why not just put all of your images in a directory off of the root. And have the link be
"/images/imagename.gif"
That way where the usercontrol is called from
/usercontrol/uc.ascx
or the page calls it
in
/page.aspx
That images will continue to be there. You can then separate your images if there are too many.
/images/controls
/images/pages
/images/other
etc...
Hope that helps..
Morgan
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only