如何在webform上添加窗口通知? [英] How to add window notification on the webform?

查看:70
本文介绍了如何在webform上添加窗口通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Im searching on the internet for the notification(like messenger or fb notification) for web form but the information is more on the windows form for window notification with the nugget  Tulpep.WindowNotification with the code





我的尝试:





What I have tried:

PopupNotifier= new PopupNotifier();
popupNotifier.TitleText = "Title of popup";
popupNotifier.ContentText  = "Content text";
popupNotifier.IsRightToLeft = false;
popupNotifier.Popup();





提前感谢帮助



thanks in advance for the help

推荐答案

浏览器在客户端上运行,所以你可能需要一个基于javascript的解决方案,有一个是负载,但有一个是 Notify.js [ ^ ]。然后,您只需输出相关的js,即可使用RegisterScriptBlock或其他任何方式触发webform的通知。



ClientScriptManager.RegisterClientScriptBlock方法(Type,String,String,Boolean)(System.Web.UI) [ ^ ]
The browser runs on the client so you're probably going to need a javascript based solution, there are loads but one is Notify.js[^]. You then just output the relevant js to trigger the notification from your webform using RegisterScriptBlock or whatever.

ClientScriptManager.RegisterClientScriptBlock Method (Type, String, String, Boolean) (System.Web.UI)[^]


这篇关于如何在webform上添加窗口通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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