ASP.NET WebForms - Real-time notification messages for all users

Brydon Johnstone 21 Reputation points
2021-10-09T12:23:55.083+00:00

I have an ASP.NET WebForms webapp hosted on Azure.

Now I want to implement something that I can use to enter a message that will display to all users, such as 'There is a planned application maintenance happening in 30 minutes, please save all work'.

I have no idea if this is even possible or where to start, can anyone point me in the right direction?

, Brydon

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 questions
0 comments No comments
{count} votes

Accepted answer
  1. AgaveJoe 26,136 Reputation points
    2021-10-09T12:38:59.677+00:00

    We do not know how your application works or the page layout. But, if you have a master page then add code behind that queries a table. If the table has a message then display the message. Placement is up to you. The user will see the message after the next HTTP request.

    If you need a quicker message response then write JavaScript application with a timer and AJAX. AJAX calls a Web Method. The Web Method queries the same table above to figure out if there is pending maintenance and returns a message. The JavaScript application writes the message to the page.


0 additional answers

Sort by: Most helpful