如何在我的网站上注册用户时在Windows应用程序上显示通知消息 [英] How to show notification message on windows application when an user registration on my website

查看:67
本文介绍了如何在我的网站上注册用户时在Windows应用程序上显示通知消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中构建了一个网站,使用sql构建了一个c#,还有一个小的Windows应用程序,我想将这两个应用程序连接到同一个数据库。任何用户都可以在我的网站上注册,我想在我的网站上注册的用户立即在我的Windows应用程序上显示通知消息时显示通知消息。(当我们从gmail发送电子邮件并在谷歌谈话中显示通知时,我想要在Windows应用程序中显示通知)如果可能的话请发给我答案。

I am build a website in asp.net ,c# with sql, and a small windows application, and i want to connect both application with same database. Any user can register on my website, I want to show notification message when an user registered on my website show a notification message on my windows application immediately.(same as when we send email from gmail and show notification in google talk but i want to show notification in windows application) please send me answer if it is possible.

推荐答案

尝试以下步骤:



1.在窗口应用程序中添加一个计时器

2.在计时器结束时检查users_registration的数据库表中是否有新记录(我假设您的网站用于用户注册)。

3.如果记录存在则显示通知。



希望有帮助:)
Try these steps:

1. Add a timer in your window application
2. On timer elapsed check if new record is there in you database table of users_registration(that I assume is used by your website for user registration).
3. If the record exists then show the notification.

hope it helps :)


查看您的数据库条目如果在您的应用程序中注册的任何新用户显示您的通知

请参阅此链接



如何检查数据库中是否存在值, [ ^ ]
Check with Your Database Entry If any New User registered in ur application show your Notification
Refer This link

How to check if value exists in database, [^]


您只能通过webservice进行,在您的网站服务中创建一个Web服务网站,它将在Windows应用程序的计时器的tick事件中与您的Windows应用程序通信,只通过代码创建计时器,否则它将使您的应用程序非常慢,在Windows应用程序中提供该webservcice的参考。

点击以下链接以获取更多详细信息



http://support.microsoft.com/kb/818364 [ ^ ]



我对此过程也做了同样的事。
You can do it by webservice only ,create a webservice in your website ,which will communicate with your windows application in tick event of timer in windows app ,create timer by code only otherwise it will make your application very slow,give the refrence of that webservcice in windows application.
Click Below link to get more details over this

http://support.microsoft.com/kb/818364[^]

I have done the same with this process.


这篇关于如何在我的网站上注册用户时在Windows应用程序上显示通知消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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