提示或小弹出窗口

编程入门 行业动态 更新时间:2024-10-25 04:15:16
本文介绍了提示或小弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

亲爱的朋友, 如果我是一个完整的网站,其中链接了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[^]

更多推荐

提示或小弹出窗口

本文发布于:2023-08-06 04:43:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1310138.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出窗口   提示

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!