如何在C#中添加一个小的通知图标 [英] how can I add a small notification icon in C#

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

问题描述

我的主页上有一个图像,我需要在该图像上放一个小按钮,我需要的是,当用户登录到主页时,如果数据库具有值(或> 0),那么
计数应显示在按钮上(button.text = count).因此按钮应闪烁(如通知图标). 0,否则不显示任何内容..所以plz向我建议了一个我可以实现的好方法.(或)代替按钮,我可以使用图像按钮或其他按钮吗?... plz可以帮助我..

I have an image in my home page,I need to put a small button side of that image ,my need is , when a user login to home page,if the database have value ( or >0)then
the count should displayed on the button(button.text=count).So the button should be blink..(like a notification icon)..if the count > 0,else display nothing..So plz suggest me a good method that I can implement..(or) instead of button, Can I use image button or some other...plz help me..

推荐答案

使用 Jquery眨眼插件 [
Use a JQuery blink plugin[^]. If you make a scheduled ajax call to get that value from the database, you can change the blink status without refreshing the page.


这篇关于如何在C#中添加一个小的通知图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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