Hi,
I have an ASP.net app, which connects to an external server (using TCPIP).
I need some ideas on how to achieve the following:
the GetServerMessage() thread is constantly running once the app connects to the server. It waits for the server to send message.
Periodically, the server sends the app messages.
I need a system where any messages sent (by the server) to the app, are displayed a text box.
Can anyone advise me on the best way to achieve this?
I am using basic Web Forms...no silverlight or MVC.
I want to keep things as simple as possible. Nothing complicated or too clever.
Current System - heavy server load - bad design
I have this system already running using a Timer control, which updates the contents of the textbox (which is in an update panel), HOWEVER, the timer sends a message and forces a partial reload/postback every X milliseconds. The problem with this is ultra high server load. A partial postback every 10ms, for example, would eventually overload the ASP.NET server.
What I want is to do away with Timer so the (partial) postback only occurs if a message is received from the server.
Any advice would be greatly appreciated.
Thanks
I have an ASP.net app, which connects to an external server (using TCPIP).
I need some ideas on how to achieve the following:
the GetServerMessage() thread is constantly running once the app connects to the server. It waits for the server to send message.
Periodically, the server sends the app messages.
I need a system where any messages sent (by the server) to the app, are displayed a text box.
Can anyone advise me on the best way to achieve this?
I am using basic Web Forms...no silverlight or MVC.
I want to keep things as simple as possible. Nothing complicated or too clever.
Current System - heavy server load - bad design
I have this system already running using a Timer control, which updates the contents of the textbox (which is in an update panel), HOWEVER, the timer sends a message and forces a partial reload/postback every X milliseconds. The problem with this is ultra high server load. A partial postback every 10ms, for example, would eventually overload the ASP.NET server.
What I want is to do away with Timer so the (partial) postback only occurs if a message is received from the server.
Any advice would be greatly appreciated.
Thanks