Re: Updating Web Form Control From Thread
From: Jervin Justin (jervinjustin_at_yahoo.com)
Date: 11/03/04
- Next message: bruce barker: "Re: Question about posting data from one page to another page"
- Previous message: darrel: "response.writing an include tag...not working?"
- In reply to: Kevin Spencer: "Re: Updating Web Form Control From Thread"
- Next in thread: Scott Allen: "Re: Updating Web Form Control From Thread"
- Reply: Scott Allen: "Re: Updating Web Form Control From Thread"
- Messages sorted by: [ date ] [ thread ]
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!!
- Next message: bruce barker: "Re: Question about posting data from one page to another page"
- Previous message: darrel: "response.writing an include tag...not working?"
- In reply to: Kevin Spencer: "Re: Updating Web Form Control From Thread"
- Next in thread: Scott Allen: "Re: Updating Web Form Control From Thread"
- Reply: Scott Allen: "Re: Updating Web Form Control From Thread"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|