T
t@t
Hello,
I have 2 applications, communicating with web-services. One application is
an ASP.NET application. This is sometimes updated with some data by the
other application by means of a web-service.
The ASPX page of this ASP.NET application should always display the actual
status of that data. How can I manage this the best?
One option I already implemented is to add javascript to that page:
'window.setInterval' or 'window.setTimeOut' to do a postback each second to
the server side. This works. However, I am afraid this polling scheme is not
as efficient as possible. Are there other options to update the page?
Is the IHttpAsyncHandler an option to use? To do a asynchroneous call to the
application, and let the spawn pplication thread end this request when new
data is received? Or will this not work?
In my opinion this is a very common problem and is probably already solved
many times. Waiting for your hints.
Regards,
RAK
I have 2 applications, communicating with web-services. One application is
an ASP.NET application. This is sometimes updated with some data by the
other application by means of a web-service.
The ASPX page of this ASP.NET application should always display the actual
status of that data. How can I manage this the best?
One option I already implemented is to add javascript to that page:
'window.setInterval' or 'window.setTimeOut' to do a postback each second to
the server side. This works. However, I am afraid this polling scheme is not
as efficient as possible. Are there other options to update the page?
Is the IHttpAsyncHandler an option to use? To do a asynchroneous call to the
application, and let the spawn pplication thread end this request when new
data is received? Or will this not work?
In my opinion this is a very common problem and is probably already solved
many times. Waiting for your hints.
Regards,
RAK