Question

Can someone post a sample code on how I can access the TempData dictionary object from within the Global.asax.cs?

Was it helpful?

Solution

Dictionary<string, object> tempDataDictionary = HttpContext.Current.Session["__ControllerTempData"] as Dictionary<string, object>;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top