|
|
|
date: Thu, 12 Jun 2008 19:07:37 -0400,
group: microsoft.public.dotnet.framework.aspnet.webcontrols
back
Re: UpdateProgress - AJAX
So...
I figure we must need to poll the server process from the client, say every 10 seconds after each POSTs response.
Now after trying two systems, am not able to get the client-side events to work.
I keep getting Sys undefined with...
var prm = Sys.WebForms.PageRequestManager.getInstance();
I first started on my workstation Vista SP1 with VS2008 .NET 3.5 and then tried on a W2K3 .NET 2.0 (new AJAX Web site). I've spent hours validating the web configs, to no avail <sigh>.
Gosh, this should be trivial, again I have the parameters beforehand for a progress percentage... This job will loop N number of times.
I guess I'll resort to old-school and use window.setinterval(pollMyState(), 10000) calling the server-side to check a session variable.
"mike" wrote in message news:%23kTFdEOzIHA.5520@TK2MSFTNGP06.phx.gbl...
Hello,
I have a need, to implement a progress bar in ASP.NET.
The server-side process has a count for a processing loop, ex. for (i=0; i < iCount; i)...
It may be a lengthy process so would very much like to show the progress to the user.
I've download and installed the AJAX Toolkit because I see Asynchronous, Partial Postbacks, Triggers and such.
However I am having difficulty makiing the leap from the examples' client-side button-click events, to what I thought might be either async callbacks or server-side postings. That is, I thought the server might be updating the client.
I guess, what I am wondering is how to communicate the server's progress as it progresses through the loop? Can the server-side update (UpdateProgress) the client's panel multiple times? Or does the client need to perform a partial post to basically poll the server's progress many times in some fashion?
Thnx
- Mike
date: Sat, 14 Jun 2008 08:29:45 -0400
author: mike
|
|