Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 12th, 2012, 05:36 AM
Authorized User
 
Join Date: Dec 2011
Posts: 39
Thanks: 9
Thanked 0 Times in 0 Posts
Default For some reason my update progress gif won't animate.

Hey Imar,

I know this is a really minor problem but it is really frustrating me. I followed all of the steps for adding an updateprogress panel and my animated gifs show up just fine but they don't animate for some reason.

I generated a gif from www.ajaxload.info and here is the markup just case I missed something.

Is it not supposed to animate or something?

Thanks, Dave.

HTML Code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
  <ContentTemplate>
    <table id="FormTable" runat="server" class="style1">
      <tr>
        <td colspan="3">


<!--   .... the rest of the formtable ....  -->


    </table>
    <br />
    <asp:Label ID="MessageSent" Text="Your message has been submitted." visible="false" runat="server" />
  </ContentTemplate>
</asp:UpdatePanel>

<asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" 
  runat="server" DynamicLayout="False">
  <ProgressTemplate>
    <div class="PleaseWait">
    Please Wait...
    </div>
  </ProgressTemplate>
</asp:UpdateProgress>
CSS:

HTML Code:
.PleaseWait
  {
    height: 42px;
    width: 500px;
    background-image: url(Images/ajax-loader.gif);
    background-repeat: no-repeat;
    padding-left: 52px;
    line-height: 42px;
  }
 
Old January 12th, 2012, 11:05 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I assume the image is visile while you wait?

Does it animate when you request it in the browser directly?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old January 12th, 2012, 06:59 PM
Authorized User
 
Join Date: Dec 2011
Posts: 39
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Hey Imar,

No, it does not animate when I open the gif directly in IE9 but neither did the 2 gifs you supplied in the resources folder so I didn't think anything of it.

I can see the image just fine when during run-time but it is just a static gif.

Are they supposed to animate when you view them directly?
 
Old January 13th, 2012, 06:23 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In that case, I think animation is turned off. Try this in IE: go to Internet Options, select the Advanced tab. Scroll down until you see "Play animations in webpages" under Multimedia and make sure that the option is checked. Then restart IE and try again.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
IceThatJaw (January 13th, 2012)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Another reason to go more 'traditional'? patch BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 0 August 3rd, 2009 03:00 PM
"what is the reason" heerajee Oracle 1 March 24th, 2006 05:52 AM
What's the reason for this error? batli25 .NET Framework 1.x 2 December 5th, 2005 08:47 AM
Update progress until another process ends? Kyle Ketterer Pro VB.NET 2002/2003 1 July 4th, 2004 09:23 PM
Animate Ms Agent Characters with vb Kaustav VB How-To 0 January 20th, 2004 11:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.