473,750 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display animation during page-load

Hi

ASP.Net v2.0

I have a page and, depending on circumstances, it can sometimes take between
10-30 seconds to load, this is due to a dependency on a 3rd party
web-service that is very slow..

Is there anyway of informing the user that the server hasn't died and that
the page is busy fetching results?

Thanks
Kev
Jun 19 '07 #1
4 3106
"Mantorok" <no**@none.comw rote in message
news:f5******** **@newsfeed.th. ifl.net...
Hi

ASP.Net v2.0

I have a page and, depending on circumstances, it can sometimes take
between 10-30 seconds to load, this is due to a dependency on a 3rd party
web-service that is very slow..

Is there anyway of informing the user that the server hasn't died and that
the page is busy fetching results?

Thanks
Kev

1) You put your code to fetch your data in another page (ie data.aspx)
2) You bring up your loading page that in turn call your data.aspx with AJAX

I know the place I work at are doing things like that...

(Sorry for my english btw!)

Mike

Jun 19 '07 #2
Using ASP.NET AJAX and an UpdatePanel, you can set the UpdateIndicator
to an animated GIF.

On Jun 19, 9:13 am, "Mike Gleason jr Couturier"
<mcouturierMAP. ..@bmgmultimedi a.comwrote:
"Mantorok" <n...@none.comw rote in message

news:f5******** **@newsfeed.th. ifl.net...
Hi
ASP.Net v2.0
I have a page and, depending on circumstances, it can sometimes take
between 10-30 seconds to load, this is due to a dependency on a 3rd party
web-service that is very slow..
Is there anyway of informing the user that the server hasn't died and that
the page is busy fetching results?
Thanks
Kev

1) You put your code to fetch your data in another page (ie data.aspx)
2) You bring up your loading page that in turn call your data.aspx with AJAX

I know the place I work at are doing things like that...

(Sorry for my english btw!)

Mike

Jun 19 '07 #3
Hi Kev,

I agree with others that you can consider return your long-run page
immediately(let the service executing at server-side) and at client-side,
you can display some message indicate that the server task is running and
use some client-side script to postback and poll the server-side service
execution status. For the script , you can either use ASP.NET 2.0's script
callback feature or use the new AJAX framework(you need to install the ajax
runtime components).

#Implementing Client Callbacks Without Postbacks in ASP.NET Web Pages
http://msdn2.microsoft.com/en-us/library/ms178208.aspx

http://msdn2.microsoft.com/en-us/library/ms178210.aspx
#ASP.NET AJAX
http://ajax.asp.net/

In addition, you can also found some former threads dicussing on this
topics in the newsgroup:

http://groups.google.com/group/micro...rk.aspnet/brow
se_thread/thread/719a56977f0fea5/bcf7bd5271c85dd b

http://groups.google.com/group/micro...rk.aspnet.buil
dingcontrols/browse_thread/thread/20beec83bdb3de2 0/cb633eaf816a4a2 b

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.



Jun 20 '07 #4
Thanks Steven, very helpful as usual.

Thanks for the other responses guys.

Kev

"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:fg******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Kev,

I agree with others that you can consider return your long-run page
immediately(let the service executing at server-side) and at client-side,
you can display some message indicate that the server task is running and
use some client-side script to postback and poll the server-side service
execution status. For the script , you can either use ASP.NET 2.0's
script
callback feature or use the new AJAX framework(you need to install the
ajax
runtime components).

#Implementing Client Callbacks Without Postbacks in ASP.NET Web Pages
http://msdn2.microsoft.com/en-us/library/ms178208.aspx

http://msdn2.microsoft.com/en-us/library/ms178210.aspx
#ASP.NET AJAX
http://ajax.asp.net/

In addition, you can also found some former threads dicussing on this
topics in the newsgroup:

http://groups.google.com/group/micro...rk.aspnet/brow
se_thread/thread/719a56977f0fea5/bcf7bd5271c85dd b

http://groups.google.com/group/micro...rk.aspnet.buil
dingcontrols/browse_thread/thread/20beec83bdb3de2 0/cb633eaf816a4a2 b

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.



Jun 20 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4865
by: Rohit Dhawan | last post by:
I have a Oracle report which displays a front page every time when a certain query is run. Now, is there a way to display the front page only and only when a ceratin parameter say :param='all' is inserted by the user Otherwise whenever the user enters :param='any other number' then the front page doesn't get displayed
1
3956
by: Chris Richards | last post by:
I am working with the Windows Media Encoder SDK, and at one point in the code, I have a need to display the Property Page of a Device plugin. The only code I have for doing this is written in C++ and looks like this: // Retrieve the plug-in object. if ( SUCCEEDED( hr ) ) { hr = pVidSrc->GetSourcePlugin( &pPlugin ); }
4
12867
by: William LaMartin | last post by:
Is there a way to place an aspx page on a panel contained on another aspx page? I can display an HTML page on the panel using a literal can figure no way to put and aspx page there.
5
9021
by: jensen bredal | last post by:
Hello, I attended a seminar with scott gu. Microsoft asp.net lead guru, and he mentioned some advanced javascript that let you display an animation while your page is waiting for response from the server. He said these scripts could be found on his blog but , so far i have not been able to find them. I did send him an e-mail but no luck, no response.
5
4047
by: Homa | last post by:
Hi all, Can anyone give me some links about how to do an async web service call from aspx and display a temperary page before the web service returns? Thanks, Homa Wong
1
2416
by: mdos | last post by:
Hi All: I'm pushing real-time updates to a browser via 'comet using inline JS in an iframe. I'd like to get rid of the 'busy' animation during these sessions. Short of re-coding everything to use XHR, is there a cross-browser solution? Does a lib like dojo handle this situation if I move to their dojo.io.bind()? Thanks. Ciao,
3
5667
by: Birky | last post by:
When creating a Report is there a way to display a Web page within an object? I have a scenario where I am being asked to display a report for information that is controlled and published via another support group along with information that I maintain. This other support group provides their information via the Web with a nifty little layout. On that Note I would like to include the web page itself within my report and have no clue how to go...
0
1504
by: hnpatel | last post by:
Hi.... How to set perticular number of records to display on one page of datareport in vb6.0? I want to display 10 records on one page of datareport. Yes i want to display 5 or 10 records per page of data report......how can i set to disply perticular number of records per page.....how can i do this?....please help me..... Thanx in advance....
3
1812
kaleeswaran
by: kaleeswaran | last post by:
Hi, Is it possible to display the success page as a popup window.. I want to display the success page as a popup window.
4
5401
by: Simon | last post by:
If I am running a long time query, how to show a wait page at then? Is there any recommended way to do it? Thanks.
0
9001
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9342
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4888
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.