开发者

send data from asp.net to webforms cliet from time to time

I have a wind开发者_如何学Pythonows forms application. I need to send data to it whenever something happens on the server.

How should I implement this?


You need notification from the server of the event, so I would open a persistent TCP connection to the server and listen for the notification. This means you'll have to write the server for it to connect to.

Alternatively, you could connect only periodically and check for notifications. You would put the connection on a Timer control and set the interval in the config, or maybe even user settings.

If you're in the MS world, this is what WCF is for...it makes it pretty easy, though WCF configuration is a black art in and of itself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜