lundi 26 septembre 2016

Implement unread message web application using MVC

I have message system application, where my user will read his inbox messages, by selecting check box filter options with names "Read", "Unread" & "Deleted" on MESSAGE Webpage.

This MVC application has DASHBOARD Webpage, where I have provided a link "You have New messages(3)". If user clicks this link, then he will be redirected to MESSAGE Webpage, where I have used code like href="", then on MESSAGE webpage load load, I'm checking the filter checkbox "Unread", by using the url information /MESSAGE/UnRead'.

Once user browsed to MESSAGE webpage by clicking link, then MESSAGE Webpage keep on remembering MVC url type '/MESSAGE/UnRead'. Here, if user unchecked the "Unread" checkbox and refresh the MESSAGE Webpage using refresh button on browser, again it's checking "Unread" checkbox, which should not be happened.

I was able to achieve this by using some counter++ mechanism, but I don't think that's a proper way to fix the issue.

If there opinions to achieve this issue, that would be great.




Aucun commentaire:

Enregistrer un commentaire