TempData from Global ASAX
-
20-09-2019 - |
Question
Can someone post a sample code on how I can access the TempData dictionary object from within the Global.asax.cs?
Solution
Dictionary<string, object> tempDataDictionary = HttpContext.Current.Session["__ControllerTempData"] as Dictionary<string, object>;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow