If I have a View and a Partial View, is there any way that I can pass data from the Partial View to the parent?
So if I have View.cshtml:
View.cshtml
The simpler thing you could do is in _PartialView.cshtml:
@model dynamic @{ Model.Stuff = "stuff things"; }
and in parent view:
@{ Html.RenderPartial("_PartialView", (object) ViewBag); }
then in parent view you can use:
@ViewBag.Stuff