如何在网站中添加通知栏(在线购物商店) [英] How can I add a notification bar in a website(online shopping store)

查看:96
本文介绍了如何在网站中添加通知栏(在线购物商店)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Asp.net应用程序中,如何在网站(在线购物商店)中添加通知栏,让网站的管理员了解网站的正在进行的事件,就像客户订购任何东西一样它将被通知给管理员

In an Asp.net app how can I add a notification bar in a website(online shopping store) which will let the admin, of the website , know about the on going events of the site like if a customer orders any thing it will be notified to the admin

推荐答案

您不希望向您的网站添加通知栏,尽管可以。但这意味着您的管理员必须一直关注该网站以查看通知。我建议在管理员需要知道的事件和/或有一个网格管理员可以刷新以查看当前项目列表时发送电子邮件。
You don't want to add a notification bar to your site, although you could. But that would mean your admin will have to be watching the site all the time to see the notifications. I suggest sending emails when there are events the admin needs to know about and/or having a grid that the admin can refresh to see the list of current items.


嗯,你需要思考一步一步为此我不能做那么多的编码。

但这是一个想法。

你可以做的是,为你做的事件创建日志再谈。在管理员登录时,您可以使用jQuery(您的通知)加载日志。

一旦管理员查看/读取通知,您就可以清除日志,并刷新您的特定部分页面。



您可以使用jQuery从服务器端维护日志并将其读取到客户端。



-KR
Well, you need to think step by step for this & I can't do that much coding.
But here's an idea.
What you can do is, create the logs for the events you're talking about. And on the admin login you can load that logs using jQuery (your notifications).
And once the notifications are viewed/read by the admin, you can clear the logs, and refresh that particular portion of your page.

You can maintain your logs from server-side and read it to the client-side using jQuery.

-KR


这篇关于如何在网站中添加通知栏(在线购物商店)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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