Really simple question.
My layout page looks like
@RenderBody()
@{
if (ViewBag.IsInternal)
{
//do something here
}
}
The partial looks like
@{
ViewBag.IsInternal = false;
}
Is it doing what I think it should be doing? Basically, if in the partial, ViewBag.IsInternal is set, I am able to read that set value in the layout.