如何从网站向桌面发送警报 [英] How to send Alerts from website to desktop
本文介绍了如何从网站向桌面发送警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以告诉我如何将警报从网站发送到桌面。计算机中安装了一个小的.exe文件,它从服务器接收消息并在屏幕上显示
Can anyone tell me how will i send alert from a website to a desktop.Where a small .exe file is installed in computer which receive the message from server and show in screen
推荐答案
如果您需要在PC上的服务器和通知应用程序之间进行通信,您可以尝试使用Growl for Windows在服务器和PC之间实现简单的泵。
http://www.growlforwindows.com/gfw/developers.aspx [ ^ ]
在ASP.NET页面上的代码中,您可以引发一个growl事件,或者使用适用于NLOG的growl插件...
If you need a way of communicating between a server and a notification application on your PC, you could try to implement a simple pump between your server and your PC with Growl for Windows.
http://www.growlforwindows.com/gfw/developers.aspx[^]
In your code behind on the ASP.NET pages, you can raise a growl event, or use the growl plugin for NLOG...
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<extensions>
<add assembly="NLog.Targets.GrowlNotify" />
</extensions>
<targets>
<target name="console">
xsi:type="ColoredConsole"
layout="
{shortdate}
{shortdate}
{level}
这篇关于如何从网站向桌面发送警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文