title: Passing ViewData to Partial View
body: <p>Controller</p>
  
  <pre><code> IEnumerable&lt;AvgPosGAFields&gt; _myList = helper.ConvertToListAvgPosGa(locDataSetGACampaigns.Tables[0]);        
   ViewData["hourlydata"] = _myList;
  </code></pre>
  
  <p>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??</p>
  
  <p>Main View:</p>
  
  <pre><code> Html.RenderPartial( "HourlyDetails",new ViewDataDictionary { { "hourlydata", 0 } } );
  </code></pre>
  
  <p>Partial View contains a table which is to be filled by the model in ViewData</p>