I am using MVC 3 with the Razor view engine. I want to set some values in the ViewBag inside a Partial View and want retrieve those values in my _Layout.cshtml. For exampl
try @SLaks code with
(((WebViewPage) WebPageContext.Current.Page).ViewBag).PropertyName