title: Using Eval for creating Comma Separated string from Generic list
body: <p>I have a Report class. The reports data is rendered using a repeater control. There is a department list (generic list of string)  to be displayed as comma separated. Can we make it as a comma separated list in the repeater using Eval? If we cannot use Eval, is there any other syntax for this in repeater?</p>
  
  <p>Class</p>
  
  <pre><code> public class Report
  {
      public int ReportID { get; set; }
      public string Title { get; set; }
      public string Recipients { get; set; }
      public string Frequency { get; set; }
      public List&lt;string&gt; DepartmentList { get; set; }
  
  }
  </code></pre>
  
  <p>ASP.NET Markup</p>
  
  <pre><code>&lt;asp:Repeater ID="rptReports" runat="server"&gt;
                      &lt;HeaderTemplate&gt;
                          &lt;div&gt;
                          &lt;/div&gt;
                      &lt;/HeaderTemplate&gt;
                      &lt;ItemTemplate&gt;
                          &lt;div class="repeaterIdentifier"&gt;
                              &lt;div class="reportTitle"&gt;
                                  &lt;%# Eval("Title") +":" %&gt;
                              &lt;/div&gt;
                              &lt;div class="reportFrequency"&gt;
                                  &lt;%# " Frequency - "+ Eval("Frequency") %&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="reportContent"&gt;
                              &lt;div class="repeaterLine"&gt;
                                  &lt;%# Eval("Recipients")%&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:Repeater&gt;
  </code></pre>