Tag: asp.net mvc
-
TempData not cleared between requests when using ContainsKey
Recently I was trying to add a simple message to the top of the screen if the user had been logged out. This message, should appear only once. If the user navigates away from the page, it shouldn’t show again. So, it made sense to use TempData In my controller, I had something like this:…