如何使用asp.net在任务栏中显示通知消息 [英] how to show the notification message in taskbar using asp.net

查看:106
本文介绍了如何使用asp.net在任务栏中显示通知消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我在ASP.net中创建了一个邮件应用程序,我需要在任务栏中通知一条消息,如果有任何新邮件到达,

使用asp.net在任务栏中通知我还没找到该代码在任务栏系统托盘上显示气球。我找到的大多数示例代码都是在Windows窗体上。你可以帮我用ASP.Net添加这个通知消息是否有任何jquery或Ajax方法。提前谢谢。

Hi i have created a mail application in ASP.net, i need to notify a message in taskbar if any new mails arrived,
for notify in taskbar using asp.net i haven't found that code to show balloon on taskbar system tray. Most example code I found is on Windows forms. can you please help me to add this notify message using ASP.Net is there any jquery or Ajax methods. thanks in advance.

推荐答案

你不能......

ASP.NET应用程序的客户端是一个沙盒网页浏览器内部...您无法访问操作系统的资源(安全原因),因此您无法使用任何Windows API访问任务栏...

您需要的任何通知显示在您的网页内...

(您可能会看到GMail会在任务栏上显示通知,但是有一个单独的应用程序要安装 - 您也可以这样做,但与GMail一样,它不会成为您网页的一部分)
You can't...
The client side of your ASP.NET application is a web page sandboxed inside the browser...You can not access the resources of the OS (security reasons), so you can not use any Windows API to access the taskbar...
Any notification you have you have to display inside your web page...
(You may see that GMail do display notifications on the taskbar, but there is there a separate application to install - you can do it too, but as with GMail, it will not be part of your web page)


这篇关于如何使用asp.net在任务栏中显示通知消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆