Share via

Navigate away method thtas call on the controller

Cairn 41 Reputation points
2021-07-24T21:08:39.12+00:00

On my page I have a link to a event handler linked to a singleton class which notifies me of updates to the data. When I navigate a way and come back to the page I then receive 2 notifications which I know related to the event methods has now been registered twice. I have attempted to override the dispose class so that when I navigate away I deregister then event methods, but the dispose methods never hits.
What do I need to link to so that I can deregister from the delegate so that when I naviagte back to the page it will reregister and I only get 1 message

Developer technologies | ASP.NET | ASP.NET Core
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.