Question: how to pass data from controller to partial view?
Answer: Pass Data to Partial View using ViewBag/ViewData You can use ViewData / ViewBag to pass the information from the controller's action method to the View. ViewData uses ViewDataDictionary and ViewBag is just a wrapper around ViewData using dynamic feature.