If i got view which inherits from:
System.Web.Mvc.ViewPage
Where Foo has a property Bar with a type string
And view wants
Look at ASP.NET MVC source (HtmlHelper.cs -> RenderPartialInternal method -> line 258):
...
if (model == null) {
if (viewData == null) {
newViewData = new ViewDataDictionary(ViewData);
}
...
this is exactly your case. ASP.NET MVC uses the ViewData from your ViewContext
UPDATED:
Try this instead:
<% Html.RenderPartial("_Bar", Model.Bar ?? "Default" ); %>