ASP.NET中的弹出提醒 [英] Popup Reminder in ASP.NET
本文介绍了ASP.NET中的弹出提醒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我开发了一个CRM应用程序,我需要提醒用户给客户打电话,跟进和所有事情。
我在数据库中保存日期和时间。但我不知道如何给用户提供弹出提醒......
我只想在网页上给出弹出通知。(没有电子邮件,没有sms)
我应该为每秒检查数据库的相同或某种功能创建服务..
我的框架是3.5
请建议。
Hi to all,
I have developed a CRM application, in which I need to remind user to call a customer, followup and all things.
I am saving date and time in database for the same. But I don't know how to how to give a popup reminder to user...
I want to give popup notification on webpage only.(no email, no sms)
Should I create a service for same or some kind of function which will check database per second..
My Framework is 3.5
Please advice.
推荐答案
一个简单的解决方案是部署一个定时器,以特定的时间间隔查询服务器,以检查更新是否有发生了。
如果有更新,请在界面上显示弹出窗口。
但是,更好的解决方案是实施WCF使用双工通信来更新服务器上的更改UI的服务。试试 http://msdn.microsoft.com/en-us/library/ms731064.aspx [ ^ ]。
A simple solution would be to deploy a timer that queries the server at specific intervals to check if an update has occured.
If there is an update, display a popup on the UI.
However, a better solution would be to implement a WCF service that makes use of duplex communication to update the UI of changes on the server. Try http://msdn.microsoft.com/en-us/library/ms731064.aspx[^].
感谢大家回复这篇文章。
但我已经解决了这个问题。
我添加了Iframe并创建了另一个页面,它在数据库上每1分钟后触发一次触发器。它检查时间并在浏览器上注册客户端脚本弹出窗口。
没有漏洞页面PostBacking,没有任何JQuery&没有任何第三方实用工具。
工作完成
再次感谢所有人。
请在以下链接中找到示例代码。
IFrameTimer.zip [ ^ ]
谢谢
Thank to all for replying on this post.
But I have solved this problem.
I have added Iframe and created another page, which fires a trigger after every 1 min on database. It checks time and registers a Client Script popup on browser.
No hole page PostBacking, no any JQuery & no any third party utility.
Job done
Thank to all once again.
Please find sample code at below link.
IFrameTimer.zip[^]
Thank You
这篇关于ASP.NET中的弹出提醒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文