| Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development | Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
| Author | Forum: PowerWEB LiveControls for ASP.NET Topic: 'busy' animation during postback? |
| benles From: Santa Barbara, CA USA Posts: 16 Member Since: 05/10/05 |
posted July 12, 2005 2:56 PM Hi, some good Ajax applications like Flickr show a busy animation during postback. AS a random example, see http://www.flickr.com/photos/33104017@N00/show/ I think something like this would be useful, but how can I make the controls call some client-side code to start the animation before posting back? |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted July 13, 2005 11:17 AM You can use the WaitElementID on a LiveControl to specify the element to display some text while the Callback is executing. For example, if you set the WaitElementID of a LiveButton to the ID of a LiveLabel and set the WaitMessage property of the LiveButton to some HTML like an IMG tag, this HTML would be displayed until the Callback was completed. If the IMG pointed to an animated GIF, you'd get the functionality you're looking for. |
| benles From: Santa Barbara, CA USA Posts: 16 Member Since: 05/10/05 |
posted July 13, 2005 12:09 PM I'll try some options and post a good solution. Most common operations block and share a busy icon to replace the old animated icon seen in browser chrome. |
| giovanni.gomez ggomez@alum.syracuse.edu From: Orlando, FL USA Posts: 52 Member Since: 07/06/05 |
posted December 12, 2006 4:26 PM I'm trying to follow your example, but I'm receiving an error: Expected ';'. I have the following controls on my page: <cc1:LiveButton ID="btnSubmit" runat="server" WaitElementID="lbMessage" WaitMessage="<img alt=\'\' src=\'indicator.gif\' />" /> <br /><br /> <cc1:LiveLabel ID="lbMessage" runat='server'></cc1:LiveLabel> <br /><br /> <cc1:LiveLabel ID="lbResults" runat='server'></cc1:LiveLabel> and my code behind looks like this: Partial Class _Default Inherits System.Web.UI.Page Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click 'Make the thread wait 30 seconds System.Threading.Thread.Sleep(15000) Me.lbResults.Text = "Done!" End Sub End Class What am I missing? |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted December 12, 2006 5:45 PM Try switching the quotes on the WaitMessage property so it reads: WaitMessage='<img alt="" src="indicator.gif" />' You see this type of syntax when DataBinding attributes on standard Web Server Controls. Because the value of the attribute contains quotes, the outer quotes can use the single-quote. |
| giovanni.gomez ggomez@alum.syracuse.edu From: Orlando, FL USA Posts: 52 Member Since: 07/06/05 |
posted December 13, 2006 8:02 AM That worked. Thanks! |
| Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|