I need to write an ASP.NET application which can do the following:
1. Create a socket which will stay alive and continously read data.
2. The data read needs to be displayed on the webpage.
3. As the data is received, it needs to be displayed as its received.
I have made an attempt, but hit a problem.
Here is a brief overview of the attempt:
1. Page_Load kicks off a thread for the socket handling. The socket is
static.
Its sits and reads data and caches the bytes read in an ArrayList
(also static).
2. When a postback is fired (I am using an Atlas timer to prevent a full
postback) I clear the Listbox component
for displaying the socket data and then bind the ArrayList to the
Listbox to display.
This does appear to work but at different intervals, I get a message box
box indicating unknown error.
If I take the code out for dsiplaying the Listbox, the data continues to
cache, but I cant think of a way of displaying.
Anyone know why this is happening, or suggest an alternative to my
problem?
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com ***