Solved

Gif Image does not animate in aspx page

Posted on 2008-06-16
5
730 Views
Last Modified: 2010-01-28
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

0
Comment
Question by:negreteo
  • 3
5 Comments
 
LVL 6

Expert Comment

by:rafayali
ID: 21798751
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" />

0
 

Author Comment

by:negreteo
ID: 21798761
I am developing in VS 2003, the image is shown but it does not animate
0
 
LVL 15

Expert Comment

by:Solar_Flare
ID: 21799185
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?
0
 

Author Comment

by:negreteo
ID: 21804456
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
0
 

Accepted Solution

by:
negreteo earned 0 total points
ID: 21827979
I was able to do it with Javascript

var ctr = 1;
            
function UpdateImg(ctrl,imgsrc)
 {
   var img = document.getElementById(ctrl);
   img.src = imgsrc;
}

setTimeout("UpdateImg('imgLoading','../images/Loading16.gif');",50);
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now