?
Solved

Gif Image does not animate in aspx page

Posted on 2008-06-16
5
Medium Priority
?
743 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month14 days, 21 hours left to enroll

770 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