Question: broadcast messages?

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

I want to allow an administrator of my website to send out a broadcast-type
message to everyone who is currently viewing a certain webpage. Is this
possible?

FYI: This is an intranet asp.net website.

Ex:
Admin wants to send out a message: "If you are viewing this page at this
very moment, please call me."
User sees the message (either a pop-up or is redirected to an HTML file).
One notification only. Not persistent.
End of story.

Any ideas?
 
You could append content to a page as a message. Basically just have a label
that holds messages, if available (could be set through an admin page and
stored either as an application variable, or from a database or other
source) it will display the message. There's no way to broadcast any message
because once the web page is served the browser disconnects immediately and
is no longer in contact to the server.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
You could have a timer going off in javascript, that makes a call to the
server via XMLHTTP every X seconds, checking if there are any messages to
display. Then you have to start worrying about not showing the message to a
user once they've seen it, and removing it after a certain time, etc. There
is no very clean way to do it.
 
Back
Top