asp.net中的提醒功能 [英] reminder functionality in asp.net

查看:90
本文介绍了asp.net中的提醒功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我必须在我的项目中实现提醒功能.像它应该在弹出的窗口中提醒已登录用户必须在特定日期和时间执行的任务.

我已经从 ASP.NET弹出控件 [

Hello all,

I have to implement a reminder functionality in my project..like it should give a popup reminding about the task a logged in user has to do at particular date and time.

I have downloaded popup control from ASP.NET Popup Control[^]

I have written code on masterpage to popup the reminder..but it only works only when a page is posted back...even though I have taken a timer control on master page. Please help

推荐答案

[ ^ ]可能会帮助您


在作者的论坛人员中询问相同的问题,您可以快速找到解决方案. 此处 [ ^ ]
Ask the same question in author''s forum man, you can get the solution quickly. Here[^]


您可以使用AJAX进行此操作,并每30秒或每隔您需要的时间查询服务器一次.当服务器响应任务即将到期时,您将使用javascript弹出消息.我个人觉得弹出窗口会让人感到痛苦,而且真的很烦人,因为它们会分散我的注意力并干扰我目前正在做的事情.
我希望这种方法可以在页面上的显眼位置显示上述提醒,甚至可以在其旁边运行某种动画来引起我的注意.播放声音也是一种可行的选择,但不要像Windows那样做,并思考:[开始咆哮] 没有什么比我现在要告诉您的要重要的了,所以请停止工作并付款注意我!" [结束语]
除非对应用程序本身至关重要,否则我将立即关注.

注意事项:如果您的用户在全球范围内工作,则需要确保提醒服务在所有时区都有效.只是一个提示,来自实际遇到这种情况的somone! :)

问候,

曼弗雷德(Manfred)
You can do this using AJAX and query the server say every 30 seconds or whatever interval suits your needs. When the server responds that a task is about to be due you popup a message using javascript. I personally find popups a pain in the a** and really annoying as they distract and interrupt me from what I''m currently doing.
I would favor the approach to display said reminder in a prominent position on the page and it may even have some kind of animation running next to it to capture my attention. Playing a sound is also a viable option, but don''t do as windows does and think: [Start rant]"Nothing can be more important than what I have to tell you right now, so please stop working and pay attention to me!" [End rant]
unless it was vital to the application itself that I pay immeadiate attention.

Caveat: If your users work worldwide you need to make sure the reminder service works in all timezones. Just a tip, from somone who actually ran into this situation! :)

Regards,

Manfred


这篇关于asp.net中的提醒功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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