asp.net 怎么实现事物提醒 如何实现用户定义一个提醒内容,到用户指定的时间之后提醒用户。数据库是MySql的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ajax中Timer定时提醒 过定时器弹出提示窗口,很多OA有这种功能 <script> function openWindow(win,winTitle,winWidth,winHeight) { var winleft=window.screen.width-winWidth-12; var winTop=window.screen.height-winHeight-75; window.open(win ,winTitle,'width='+ winWidth +'px,height='+ winHeight +'px,left='+ winleft +'px,top='+ winTop +'px,scrollbars=1,status=0'); } </script> <script language="javascript" type="text/javascript" src="../js/Ajax.js"> </script> <script language="javascript" type="text/javascript"> function check(typeStr) { var myurl="Tip.aspx?type="+typeStr; var MyWebSend=""; xmlHttp.open("POST",myurl,true); xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.onreadystatechange = ValidateCallBack; xmlHttp.send(MyWebSend); } function checkNormal() { check('normal'); window.setTimeout("checkNormal()",60000); } function checkCalendar() { check('calendar'); window.setTimeout("checkCalendar()",1200000); } function ValidateCallBack() { if (xmlHttp.readyState == 4) { if (xmlHttp.status == 200) { var result=xmlHttp.responseText; if(result.indexOf("Exist::")==0) { openWindow('popTip.aspx','smsWindows','430','220'); } } else { } } } </script> </head> <body onload="checkNormal();checkCalendar();"> 在popTop里绑定数据 <script> focus(); TimeStart=30; function MyTimer() { if(TimeStart==0) window.close(); if(document.getElementById("TimeShow")) document.getElementById("TimeShow").innerHTML=TimeStart; TimeStart--; var timer=setTimeout("MyTimer()",1000); } 只能发邮件或者消息,用户不上线你能怎么办??如果重要信息短信方式,手机要是欠费停机了呢?给其好友发送?或者给qq、msn、邮箱、短信都发一遍... 通过定时器弹出提示窗口,很多OA有这种功能 <script> function openWindow(win,winTitle,winWidth,winHeight) { var winleft=window.screen.width-winWidth-12; var winTop=window.screen.height-winHeight-75; window.open(win ,winTitle,'width='+ winWidth +'px,height='+ winHeight +'px,left='+ winleft +'px,top='+ winTop +'px,scrollbars=1,status=0'); } </script> <script language="javascript" type="text/javascript" src="../js/Ajax.js"> </script> <script language="javascript" type="text/javascript"> function check(typeStr) { var myurl="Tip.aspx?type="+typeStr; var MyWebSend=""; xmlHttp.open("POST",myurl,true); xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.onreadystatechange = ValidateCallBack; xmlHttp.send(MyWebSend); } function checkNormal() { check('normal'); window.setTimeout("checkNormal()",60000); } function checkCalendar() { check('calendar'); window.setTimeout("checkCalendar()",1200000); } function ValidateCallBack() { if (xmlHttp.readyState == 4) { if (xmlHttp.status == 200) { var result=xmlHttp.responseText; if(result.indexOf("Exist::")==0) { openWindow('popTip.aspx','smsWindows','430','220'); } } else { } } } </script> </head> <body onload="checkNormal();checkCalendar();"> 在popTop里绑定数据 <script> focus(); TimeStart=30; function MyTimer() { if(TimeStart==0) window.close(); if(document.getElementById("TimeShow")) document.getElementById("TimeShow").innerHTML=TimeStart; TimeStart--; var timer=setTimeout("MyTimer()",1000); } http://topic.csdn.net/u/20100113/12/03671fc9-d89f-4ea3-97eb-d61cbb90c7fb.html 提醒的具体内容或工作可能会负责点,可以到提醒的时候ajax取数据,或弹出一天链接了。让用户点过去看。 Up如果用户没有打开网页的话可以根据数据库个字段判断当用户点击关闭后在通过ajax修改字段为1当用户一进入这个页面判断是否为0,为0就是还没通知其他值就是已经通知了! 一个取根父级的问题!!!!!!!!!!!! 哈哈,一个入门级的Linq,搞着玩的,放点分 ※高分求相关资料,关于证书的问题,内详。 关于身份验证的问题 请教DataGrid问题 这些代码是手写的,还是自动生存的?? 点击右框架的保存,如何刷新左框架的Treeview,或者如何刷新左框架呢? 解决方案生成成功,发布网站报错-未将对象引用设置到对象实例 请教一参数问题 请提供下载有关ASP及.NET的书的网址:)谢谢 在线等,关于对出的问题。 Session在IE下无法获取,在google下可以获取,这是怎么回事,求解?
过定时器弹出提示窗口,很多OA有这种功能
<script>
function openWindow(win,winTitle,winWidth,winHeight)
{
var winleft=window.screen.width-winWidth-12;
var winTop=window.screen.height-winHeight-75;
window.open(win ,winTitle,'width='+ winWidth +'px,height='+ winHeight +'px,left='+ winleft +'px,top='+ winTop +'px,scrollbars=1,status=0');
}
</script>
<script language="javascript" type="text/javascript" src="../js/Ajax.js"> </script>
<script language="javascript" type="text/javascript">
function check(typeStr)
{
var myurl="Tip.aspx?type="+typeStr;
var MyWebSend="";
xmlHttp.open("POST",myurl,true);
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlHttp.onreadystatechange = ValidateCallBack;
xmlHttp.send(MyWebSend);
}
function checkNormal()
{
check('normal');
window.setTimeout("checkNormal()",60000);
}
function checkCalendar()
{
check('calendar');
window.setTimeout("checkCalendar()",1200000);
}
function ValidateCallBack()
{
if (xmlHttp.readyState == 4)
{
if (xmlHttp.status == 200)
{
var result=xmlHttp.responseText;
if(result.indexOf("Exist::")==0)
{
openWindow('popTip.aspx','smsWindows','430','220');
}
}
else
{
}
}
}
</script>
</head>
<body onload="checkNormal();checkCalendar();"> 在popTop里绑定数据
<script>
focus();
TimeStart=30;
function MyTimer()
{
if(TimeStart==0)
window.close();
if(document.getElementById("TimeShow"))
document.getElementById("TimeShow").innerHTML=TimeStart;
TimeStart--;
var timer=setTimeout("MyTimer()",1000);
}
<script>
function openWindow(win,winTitle,winWidth,winHeight)
{
var winleft=window.screen.width-winWidth-12;
var winTop=window.screen.height-winHeight-75;
window.open(win ,winTitle,'width='+ winWidth +'px,height='+ winHeight +'px,left='+ winleft +'px,top='+ winTop +'px,scrollbars=1,status=0');
}
</script>
<script language="javascript" type="text/javascript" src="../js/Ajax.js"> </script>
<script language="javascript" type="text/javascript">
function check(typeStr)
{
var myurl="Tip.aspx?type="+typeStr;
var MyWebSend="";
xmlHttp.open("POST",myurl,true);
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlHttp.onreadystatechange = ValidateCallBack;
xmlHttp.send(MyWebSend);
}
function checkNormal()
{
check('normal');
window.setTimeout("checkNormal()",60000);
}
function checkCalendar()
{
check('calendar');
window.setTimeout("checkCalendar()",1200000);
}
function ValidateCallBack()
{
if (xmlHttp.readyState == 4)
{
if (xmlHttp.status == 200)
{
var result=xmlHttp.responseText;
if(result.indexOf("Exist::")==0)
{
openWindow('popTip.aspx','smsWindows','430','220');
}
}
else
{
}
}
}
</script>
</head>
<body onload="checkNormal();checkCalendar();"> 在popTop里绑定数据
<script>
focus();
TimeStart=30;
function MyTimer()
{
if(TimeStart==0)
window.close();
if(document.getElementById("TimeShow"))
document.getElementById("TimeShow").innerHTML=TimeStart;
TimeStart--;
var timer=setTimeout("MyTimer()",1000);
}
http://topic.csdn.net/u/20100113/12/03671fc9-d89f-4ea3-97eb-d61cbb90c7fb.html
可以到提醒的时候ajax取数据,或弹出一天链接了。让用户点过去看。
如果用户没有打开网页的话
可以根据数据库个字段判断
当用户点击关闭后在通过ajax修改字段为1
当用户一进入这个页面判断是否为0,为0就是还没通知
其他值就是已经通知了!