Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Comments
Raje_ 25-May-15 6:06am    
You can't do it. A web page doesn't have the level of desktop access. you can try showing notification on page it's self.
kesav prakash 25-May-15 6:27am    
thanks for the reply, i need to show some notification when the application is minimized not only on taskbar at any places. any ideas?

1 solution

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)
 
Share this answer
 
Comments
kesav prakash 25-May-15 6:27am    
thanks for the reply, i need to show some notification when the application is minimized not only on taskbar at any places. any ideas?
Kornfeld Eliyahu Peter 25-May-15 6:54am    
You should check this API: https://developer.mozilla.org/en-US/docs/Web/API/notification...
Notice two things:
1. It have to have user permission granted to work
2. Not supported on every browser (and ca nbe differences in implementation between browsers)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900