Link to home
Start Free TrialLog in
Avatar of negreteo
negreteoFlag for United States of America

asked on

Gif Image does not animate in aspx page

Hi,

 I have a gif image in a ASP.net C# page that does not animate when page is loaded in IE. How can I solve this issue?

Thanks in advance



<asp:Image id="Image1" runat="server" ImageUrl="loading16.gif"></asp:Image>

Open in new window

Avatar of rafayali
rafayali
Flag of Canada image

It does not animate, or it does not SHOW at all? Meaning, is the X sign show, instead of an image?

I ask this, because when you use <asp:image> server control, the ImageUrl property requires that the images be loaded as part of your project (in vs 2008).

That is, create an images folder (the name can be anything) and store the file in that folder. Once that is done use this syntax

<asp:image id="Image1" runat="server" ImageUrl="~/image_folder_name/loading16.gif" />

Avatar of negreteo

ASKER

I am developing in VS 2003, the image is shown but it does not animate
Avatar of Solar_Flare
Solar_Flare

if the image shows but is not animated then either the file is not animated or the browser cannot display it properly.

how did you create the animated gif, and have you seen it animating outside of the aspx page?
If I open the image using IE it animates but when I run my solution from VS and the page is displayed the image does not animate
ASKER CERTIFIED SOLUTION
Avatar of negreteo
negreteo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial