Hi Richard,
><img src="App_GlobalResources/images/logo.gif" />
><asp:Image ID="Image1" ImageUrl="~/App_GlobalResources/images/logo.gif"
>runat="server" />
Since the property would be change after the page has been compiled, so I
suggest you retrieve that image's URL from the web page in the
browser(right click the picture's position and select its Property), then
check it whether it could be resolved after compiling.
By the way, we recommend you do not put the /images/ folder under the
/App_GlobalResources/ folder, the /App_GlobalResources/ folder is a
specific folder and its content will be complied as resource, so it is
better to move your /images/ folder into another place...
Thanks for your understanding!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Richard Hein" <Auxon@noemail.noemail>
>References: <uYctgdY4FHA.3588@TK2MSFTNGP15.phx.gbl>
<BfctyRd4FHA.1172@TK2MSFTNGXA01.phx.gbl>
>Subject: Re: ASP.NET Images are not displayed
>Date: Mon, 7 Nov 2005 12:06:16 -0500
[quoted text clipped - 50 lines]
>> Get Secure! ¡§C www.microsoft.com/security
>> Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
>> &SD=msdn
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
Richard Hein - 08 Nov 2005 14:53 GMT
So the image in a Master Page doesn't resolve properly in inheriting pages,
because the image src url is relative to the inheriting page, rather than
the Master? Using ~\images\logo.gif doesn't resolve properly either, the
source of the image at runtime is under the current page's directory.
> Hi Richard,
>
[quoted text clipped - 94 lines]
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
Richard Hein - 08 Nov 2005 15:01 GMT
Actually, it resolves using the ASP Image tag:
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/analytics_logo.gif"
/>
But not the HTML Img tag:
<img src="~/images/logo.gif" />
> So the image in a Master Page doesn't resolve properly in inheriting
> pages, because the image src url is relative to the inheriting page,
[quoted text clipped - 103 lines]
>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>> rights.
Mikhail Arkhipov (Microsoft) - 08 Nov 2005 16:56 GMT
On 11/8/05 7:01, in article OvcNFVH5FHA.3760@TK2MSFTNGP14.phx.gbl, "Richard
Hein" <Auxon@noemail.noemail> wrote:
> Actually, it resolves using the ASP Image tag:
>
[quoted text clipped - 111 lines]
>>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>>> rights.
~/ only works for server-side controls, i.e. with runat="server". If control
has no runat="server" attribute, it is not processed by ASP.NET runtime.
Client browser does not understand ~ syntax, it is specific to ASP.NET.
Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights
Richard Hein - 08 Nov 2005 21:51 GMT
I see. Of course that makes sense.
> On 11/8/05 7:01, in article OvcNFVH5FHA.3760@TK2MSFTNGP14.phx.gbl,
> "Richard
[quoted text clipped - 130 lines]
> Mikhail Arkhipov (Microsoft)
> -- This post is provided 'AS IS' with no warranties and confers no rights
ManniAT - 10 Nov 2005 08:40 GMT
Hi,
if the IDE would support "root webs" this would be no problem.
A <img src="/images/... would work from everywhere in the web.
Unfortunately file system webs always refer to a subdirectory.
That is a big "missing thing" in opinion because haveing this would mean to avoid a lot of troubles.
Regards
Manfred