开发者

TempData from Global ASAX

开发者 https://www.devze.com 2022-12-15 00:35 出处:网络
Can someone post a sample code on how I can access the TempData dictionary object from wi开发者_如何转开发thin the Global.asax.cs?Dictionary<string, object> tempDataDictionary = HttpContext.Curr

Can someone post a sample code on how I can access the TempData dictionary object from wi开发者_如何转开发thin the Global.asax.cs?


Dictionary<string, object> tempDataDictionary = HttpContext.Current.Session["__ControllerTempData"] as Dictionary<string, object>;
0

精彩评论

暂无评论...
验证码 换一张
取 消