notications pop up in user side

Posted by user2931015 on Stack Overflow See other posts from Stack Overflow or by user2931015
Published on 2013-11-13T09:50:18Z Indexed on 2013/11/13 9:53 UTC
Read the original article Hit count: 270

Filed under:
|

i try to show notification as a pop up. like when admin login and through his account he send notification to user i add 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"  
        onclick="sNotify.addToQueue($('.add_message').attr('value'))"/>

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 page load like this ..

                ClientScript.RegisterStartupScript(GetType(), "Javascript",
          "javascript:sNotify.addToQueue($('.add_message').attr('value'))();", true);

it works like when i login as a admin and click on button then notification in his own page .. but i want to show this notifications in user form.

so how to solve it?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ASP.NET