Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Display animation during page-load

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mantorok - 19 Jun 2007 12:41 GMT
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
Mike Gleason jr Couturier - 19 Jun 2007 14:13 GMT
> Hi
>
[quoted text clipped - 9 lines]
> 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
Teresa Church - 19 Jun 2007 16:09 GMT
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...@bmgmultimedia.com> wrote:

> > Hi
>
[quoted text clipped - 18 lines]
>
> Mike
Steven Cheng[MSFT] - 20 Jun 2007 04:19 GMT
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/microsoft.public.dotnet.framework.aspnet/brow
se_thread/thread/719a56977f0fea5/bcf7bd5271c85ddb

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.buil
dingcontrols/browse_thread/thread/20beec83bdb3de20/cb633eaf816a4a2b

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.

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

This posting is provided "AS IS" with no warranties, and confers no rights.
Mantorok - 20 Jun 2007 09:27 GMT
Thanks Steven, very helpful as usual.

Thanks for the other responses guys.

Kev

> Hi Kev,
>
[quoted text clipped - 55 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.