G
Guest
This seems like it should be so simple but I really can't figure out what's
going on:
I have a simple MasterPage. On that page I want to place an Image (IMG or
asp:Image, doesn't really matter to me). But for some reason, the image won't
come up because the path (src) for that image in the actual page displayed
isn't right. In the "src," I've tried using a path that starts with the "~"
(src="~/Shared/Images/xyz.jpg") and a path that is relative to the MasterPage
(src="../Images/xyz.jpg"). In both cases, I just don't get the right path at
output. The IMG tag is set as runat="server" and all that so I just can't
figure out what's going wrong here.
I'm starting to think that this has to do with the path of the actual page
displayed as opposed to the path from the MasterPage but that doesn't really
make a lot of sense either. Any thoughts?
Alex
going on:
I have a simple MasterPage. On that page I want to place an Image (IMG or
asp:Image, doesn't really matter to me). But for some reason, the image won't
come up because the path (src) for that image in the actual page displayed
isn't right. In the "src," I've tried using a path that starts with the "~"
(src="~/Shared/Images/xyz.jpg") and a path that is relative to the MasterPage
(src="../Images/xyz.jpg"). In both cases, I just don't get the right path at
output. The IMG tag is set as runat="server" and all that so I just can't
figure out what's going wrong here.
I'm starting to think that this has to do with the path of the actual page
displayed as opposed to the path from the MasterPage but that doesn't really
make a lot of sense either. Any thoughts?
Alex