Controller
IEnumerable<AvgPosGAFields> _myList = helper.ConvertToListAvgPosGa(locDataSetGACampaigns.Tables[0]);
ViewData["hourlydata"] = _myList;
i want to use pass this ViewData to my partial to fill a table i am using renderpartial to render my partial my. How can i pass this ViewData ? and how can i use foreach on it??
Main View:
Html.RenderPartial( "HourlyDetails",new ViewDataDictionary { { "hourlydata", 0 } } );
Partial View contains a table which is to be filled by the model in ViewData