samedi 25 juin 2016

MVC C# Message read update

I am creating a message inbox system in MVC.

In my website, I will have notification span/label in the nav bar that alerts the user if they have an unread message (similar to this site's notifications on the top). If a user clicks on a message in his inbox that is unread, this will send a call to the database to update that messages column Read to false. How can I update the both the inbox and nav bar to show that I have one less message unread?

Do I go Ajax, javascript and if so what is the easiset way to accomplish this?

Aucun commentaire:

Enregistrer un commentaire