I want to implement communication between windows service and asp.net web page.for that i m using tcp socket programming.But when i send something from windows service to asp.net page,it is received by the asp.net application but i am not able to update any control of that page.
please help me in this metter
khushbu chikaniPosted Jan 29, 2015, 7:11 AM
i think it is due to older version of html...is there any solution for this??
Pranay RanaPosted Jan 29, 2015, 3:36 AM
Example :
var source = new EventSource("demo_sse.php");
source.onmessage = function(event) {
document.getElementById("result").innerHTML += event.data + "<br>";
};
when you careate EventSoruce like as above it will listen to the changes on that page for Asp.net you can also provide web Api or handler as input to EventSource and get refeshed data in onmessage function.
For more detail you can also search on google for EventSoruce