在客户端应用程序中显示弹出框 [英] Display Popup box in client application

查看:86
本文介绍了在客户端应用程序中显示弹出框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个简单的Web服务,该服务连接到MS Access数据库.
此Web服务参考将添加到Windows应用程序并显示数据.
如果我在数据库中插入新记录,则客户端应用程序会显示(警告)弹出框或在客户端应用程序中显示更新的记录.
如何为此编写代码?
我尝试使用计时器控制,但未成功?
任何解决方案将不胜感激.
谢谢

i write a simple web service that connect to MS access database.
this web service reference add to a windows application and display the data.
if i insert a new record in database, client application display(alert) a popup box or show the updated record in client application.
how to write code for this?
i try with timer control, but not success ?
any solution would be appreciated .
thank you

推荐答案

您可以通过在db上添加检查来做到这一点,在该数据库中可以提取新记录,并在客户端显示包含最新db记录的警报
You can do t his by adding a check on db where new record can b e fetched and alert is shown on client side containing the latest db record


您必须具有一种机制来确定数据库中是否插入了新记录.如果成功插入了记录,则只需从数据库中获取最新数据并在客户端应用程序中更新您的数据,否则通知用户.
You must be having a mechanism to find out if new record has been inserted or not in database. If record is inserted successfully then just fetch latest data from database and update your data in client application or else notify the user.


这篇关于在客户端应用程序中显示弹出框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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