views:

25

answers:

2

i tried all the versions of ie but it is not showing only 1 image.

<asp:Image ID="img" runat="server" ImageUrl="~/images/FlorDecor.jpg" BorderColor="AliceBlue" BorderStyle="None" Height="126px" Width="90px" /> 

i tried placing this image outside the folder and giving

  • url = "FlorDecor.jpg"
  • url = "../FlorDecor.jpg"
  • url="~/FlorDecor.jpg"

i tried all this stuff pls help me..

A: 

Your URL references were not all valid in Silverlight (should have been "images/FlorDecor.jpg" if the file is in the images folder of your Silverlight App).

Silverlight uses different URL methods depending on whether the image is in the Silverlight project or somewhere on the source website (or an external site).

If the problem persists the cause is more likely that your JPG is not compatible for some reason.

Convert it to a PNG with Paint.Net or similar to test that theory, or just grab another JPG from the Internet instead.

Enough already
A: 

Do not use .jpg file, use .png. It will works.

sewa mobil
JPG are best for photos in Silverlight (or elsewhere). The compression is much higher. PNG is best suited to non-lossy images or requiring transparency.
Enough already