标签: asp.net-mvc tempdata
有人可以发布一个示例代码,说明如何从Global.asax.cs中访问TempData字典对象吗?
答案 0 :(得分:1)
Dictionary<string, object> tempDataDictionary = HttpContext.Current.Session["__ControllerTempData"] as Dictionary<string, object>;