提示或小弹出窗口 [英] Aert or Small pop-up

查看:77
本文介绍了提示或小弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

如果我是一个完整的网站,其中链接了10个网页.
但是,无论何时更新新数据,我都需要显示一个警报或小的弹出窗口,作为更新一个新数据".即使用户在网站的任何页面中也是如此.
例如:您在Face Book中使用的任何页面,如果有人喜欢您的帖子,您将收到一个小的警报.

问候,
AP

Dear Friends,

If I a complete website where 10 webpages linked in it.
But when ever new data updated, I need to display a alert or small pop-up as "One New Data Updated." even if user is in any pages in the website.
Eg: Any page you use in Face Book, If any one like your post, you will be getting a small alert.

Regards,
AP

推荐答案

,您可以使用response.redirect(< script> alert(``您的文字在这里'')</script>")

或者,您可以使用RegisterClientScriptBlock("key",< script> alert(``您的文本在这里'')</script>")

两者是相等的,但有时是response.redirect可以通过单击确定"来更改页面的呈现方式.
我建议第二种选择.

您也可以使用conirm而不是alert.这将使用户可以选择单击(确定并取消)
根据您可以执行的其他操作(例如,单击确定"),您可能希望重定向到更新的页面,就像在Facebook通知中一样.
you can either use response.redirect("<script>alert(''Your text goes here'')</script>")

Or you can use RegisterClientScriptBlock("key","<script>alert(''Your text goes here'')</script>")

both are equal but sometimes response.redirect changes the way the page is rendered on clicking ok.
I would suggest the second option.

you could also use conirm instead of alert.this would give the user the option to click (ok and cancel)
Depending on which you could perform further action like clicking on ok you might like to redirect to the updated page like it happens on facebook notification.


请尝试以下链接...

像消息框一样的Gmail内部聊天 [
Try below link...

Gmail Internal Chat Like Message Box[^]


这篇关于提示或小弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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