[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

Re: Progress Bar using WebService

E.M.

9/4/2003 8:56:00 AM

MSDN contains an article describing what you want.

Eirik M.

"Avishesh" <avishesh.shrestha@agric.nsw.gov.au> wrote in message
news:16d301c372b6$6ca569a0$a501280a@phx.gbl...
> Hi All
>
> I'm developing a simple progress bar that display the
> value for the task completed and this value is updated by
> an .aspx page.
>
> It has following files
> 1. A "StartTask.aspx" file that has a command
> button "Start". When user clicks on this button, the file
> is submitted to ASP.NET and open the "Progress.html" page
> as well in a new window. It simply increases the
> Application variable "CurrentValue" and fire the
> Thread.Sleep(2000) using a loop which starts at 1 and ends
> at 100.
>
> 2. A Webservice file (Progress.asmx) with web
> method "getCurrentValue()" that returns the value of the
> Application variable "CurrentValue".
>
> 3. A HTML file (Progress.html) that call the
> webmethod "getCurrentValue()" using the "WebService
> Behaviour" in every 1000ms and updates the value of a
> textbox "textCurrentValue" using JavaScript.
>
> ===Problem===
> The value "textCurrentValue" in the "Progress.html" is
> updated only when the processing of "StartTask.aspx" is
> completed. But I want the value be updated in every 1000ms
> as setup in the html file.
>
> Can anyone please help me to solve the problem.
>
> Cheers'
>
> -avi
>