i am Creating messaging system in asp.net. how can i call client on database change? for example user's Page is open and another user sending message for that user. how can Software notify User ? is it right to call web-service every X seconds/minutes ? any solution with jQuery / AJAX /Comet ? thanks.
Call Client On Database Change
427 Views Asked by Shahin At
3
There are 3 best solutions below
0

The AJAX/JQuery solution would be to create a timer polling the web service every X seconds/minutes. Example.
0

thanks all answers :).
Comet is a programming technique that enables web servers to send data to the client without having any need for the client to request it. It allows creation of event-driven web applications which are hosted in the browser. http://www.aaronlerch.com/blog/2007/07/08/creating-comet-applications-with-aspnet/
You can take a look at Reverse AJAX
See jQuery Comet Long Poll Implementation