用户端弹出通知 [英] notifications pop up in user side
问题描述
我正在尝试将通知显示为弹出窗口。比如当管理员登录并通过他的帐户他向用户发送通知。我已经在这样的管理员表单中添加了这个html ..
i am trying to show notification as a pop up. like when admin login and through his account he send notification to user. i have added this html in admin form like this..
<asp:Button ID="notic" runat="server" Text="Send" onclick="Button1_Click" /> <br />
<input class="add_message" type="text" value="type your message"
name="add_message"></input>
<input type="button" value="add message"
önclick="sNotify.addToQueue($('.add_message').attr('value'))"/>
然后当管理员点击按钮然后通知发送给用户帐户,如任何用户登录,然后他/她能够看到用户表单中的弹出窗口我在这样的用户表单页面中调用此java脚本..
Then when admin click on button then notification send to users account like when any user login then he/she able to see pop ups in user form I call this java script in user form page load like this ..
ClientScript.RegisterStartupScript(GetType(), "Javascript",
"javascript:sNotify.addToQueue($('.add_message').attr('value'))();", true);
就像我以管理员身份登录并点击按钮然后通知一样在他自己的页面..但我想在userform中显示此通知。
所以我怎么能得到这个?
it works like when i login as an admin and click on button then notification in his own page .. but i want to show this notifications in userform.
so how can i get this??
推荐答案
('。add_message')。attr('value')) / >
('.add_message').attr('value'))"/>
然后当管理员点击按钮然后通知发送给用户帐户,就像任何用户登录然后他/她能够看到用户表单中的弹出窗口我在这样的用户表单页面中调用这个java脚本..
Then when admin click on button then notification send to users account like when any user login then he/she able to see pop ups in user form I call this java script in user form page load like this ..
ClientScript.RegisterStartupScript(GetType(), "Javascript",
"javascript:sNotify.addToQueue(
('。add_message')。attr('value'))(); ,真跨度>);
('.add_message').attr('value'))();", true);
就像我以管理员身份登录并点击按钮然后通知一样在他自己的页面..但我想在userform中显示此通知。
所以我怎么能得到这个?
it works like when i login as an admin and click on button then notification in his own page .. but i want to show this notifications in userform.
so how can i get this??
<div id="Something" visible="false">
What Ever Message you Want to show...........
</div>
//now From Server side Set Visiblility of div true
Something.visible=true;
希望这有助于........
Hope this Helps........
这篇关于用户端弹出通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!