Re: Updating Web Form Control From Thread

From: Jervin Justin (jervinjustin_at_yahoo.com)
Date: 11/03/04


Date: 3 Nov 2004 15:48:31 -0800

Yeah, I see how my second thread is pointless cos once the page loads,
its controls aren't accessible anymore. Oh and I wasn't thinking about
responsiveness wehn I added the tread.

Kevin: Yeah, i know about the infinite loop, its so that once the
thread gets one response, it will call the method again automatically
and wait for a new response.

Thanks for the link Scott, it explains some stuff...
>From what I understand from the tutorial,however, it keeps refreshing
the page every few seconds just to check if there is an update. This
is the problem, we do not want to refresh the page until we know there
is somethign to update.

One way I can think of is to have the second thread (instead of
updating the textBox) refresh the page when waitForReply returns. This
way it would refresh only when the webservice returns an update. Is it
possible to do this?

Or let me explain whats going on in my program a little further. Its
sort of like a chat client. If I open a web form, it connects to a web
service. Now, if another client (on another computer) also opens the
form and connects to the service, and then sends a message, I need to
be able to update information on my web page based on this. But I
don't want to have to reload the page every couple of seconds (becuase
in our real app, we can go hours without getting updates), but only
want to reload/refresh/update (either way) when there is somethign to
update.
Any suggestions on how to go about doing this? (I can do it with
windows forms, but I need it in a webpage to avoid forcing the clients
to use an exe, so they can just run it off thier browser).

Thanks!!



Relevant Pages

  • Re: HTTP 404 or 301 - Which ErrorDocument response
    ... I think browsers jolly well ought at least offer to update ... their bookmarks when they see permanent redirections. ... I agree that 410 is the best response. ... >> I suppose I could combine a 410 response with a Refresh header. ...
    (uk.net.web.authoring)
  • Re: Updating Web Form Control From Thread
    ... block the response until that second thread returns data. ... response has completed and nothing else will be sent to the browser. ... browser client immediately and then do the web service work while the ... >I have a web application running on a server, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Theories of lead and follow
    ... unfortunatley for you they aren't in the leaf of messages your post was ... submitted in response to. ... To refresh your memory, here's Ron's full post ...
    (rec.arts.dance)
  • RE: Folder Redirection requires refresh
    ... response to those change notifications, ... a manual refresh restores the icons in the view. ... While this affects all shell folders, ... manual refresh using F5 or to not perform a full sync at logon. ...
    (microsoft.public.windows.server.general)
  • Re: RowVersion / TIMESTAMP and Optimistic Locking in Access
    ... this is my life saving response:) thanx mate. ... simply pop up a message and return Response = acDataErrContinue to refresh ... user1 saves changes. ... to save it, the first error ...
    (microsoft.public.access.forms)