2 writes to ViewData
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageActionInvoker.cs (2)
125
pageResult.
ViewData
= pageResult.ViewData ?? _pageContext.ViewData;
295
pageResult.
ViewData
= pageResult.ViewData ?? _pageContext.ViewData;
17 references to ViewData
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (1)
22
page.
ViewData
["ManageNav.HasExternalLogins"] = hasExternalLogins;
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageActionInvoker.cs (2)
125
pageResult.ViewData = pageResult.
ViewData
?? _pageContext.ViewData;
295
pageResult.ViewData = pageResult.
ViewData
?? _pageContext.ViewData;
PageResult.cs (1)
23
public object Model =>
ViewData
?.Model!;
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
Infrastructure\PageActionInvokerTest.cs (12)
206
Assert.Same(page.ViewContext.ViewData, pageResult.
ViewData
);
262
Assert.Same(page.ViewContext.ViewData, pageResult.
ViewData
);
322
Assert.Same(pageModel.PageContext.ViewData, pageResult.
ViewData
);
481
Assert.IsType<ViewDataDictionary<TestPage>>(pageResult.
ViewData
);
581
Assert.NotNull(pageResult.
ViewData
);
615
Assert.NotNull(pageResult.
ViewData
);
650
Assert.NotNull(pageResult.
ViewData
);
684
Assert.NotNull(pageResult.
ViewData
);
719
Assert.NotNull(pageResult.
ViewData
);
753
Assert.NotNull(pageResult.
ViewData
);
789
Assert.NotNull(pageResult.
ViewData
);
824
Assert.NotNull(pageResult.
ViewData
);
RazorPagesWebSite (1)
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
26
pageResult.
ViewData
["Foo"] = "Bar";