you are setting the image url to image content rather than the image.
use ClientScript.GetWebResourceUrl() to calc the url.
-- bruce (sqlwork.com)
(E-Mail Removed) wrote:
> Hi all,
>
> I'm facing some problems using images from resources.
> I have a resource file "MyResources.resx" in the App_GlobalResources
> folder. It contains a string resource (here: "TheAlternateText" for
> the corresponding ImageButton-property) and an image resource
> ("TheImage") which should be displayed on the ImageButton.
> Now I add AlternateText="<%$ Resource: MyResources, TheAlternateText
> %>" and ImageUrl="<%$ MyResources, TheImage %>" to the asp:ImageButton-
> Tag.
> When I run the page, the alternate text is displayed correctly, but
> the image is not displayed.
> Using a local resource and meta:resourcekey="ImageButton1" produces
> the same results.
> Any ideas what I'm doing wrong?
> Thanks in advance.
>
> Cheers,
> Hannes
>