@Html.Partial("Test", Model, new ViewDataDictionary { { "a", "b" } }); @ViewData["a"] //or @{ var a = ViewData["a"]; }