C
Chris Dunaway
I was looking over some asp.net code and saw this asp:Image control:
<asp:Image ImageUrl="~/images/logo.gif" runat="server" ID="Image1"/>
What does the tilde (~) mean in the ImageUrl attribute?
Is it some sort of relative addressing? On the design surface, that shows
as an error until I change it to read:
ImageUrl="../../images/logo.gif"
Which makes more sense to me. I have seen the tilde used this way
elsewhere too.
Can you enlighten a poor noob??
Thanks
<asp:Image ImageUrl="~/images/logo.gif" runat="server" ID="Image1"/>
What does the tilde (~) mean in the ImageUrl attribute?
Is it some sort of relative addressing? On the design surface, that shows
as an error until I change it to read:
ImageUrl="../../images/logo.gif"
Which makes more sense to me. I have seen the tilde used this way
elsewhere too.
Can you enlighten a poor noob??
Thanks