title: Databinding in C#
body: <p>Can someone help me databind?  I'm new to .net and c# and am following tutorials that are only getting me half way there.  The aspx is the following:</p>
  
  <pre><code>&lt;asp:Repeater ID="rptContent" runat="server"&gt;
    &lt;HeaderTemplate&gt;
      &lt;table&gt;
        &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;T&lt;/th&gt;
              &lt;th&gt;L&lt;/th&gt;
              &lt;th&gt;S&lt;/th&gt;
          &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
    &lt;/HeaderTemplate&gt;
    &lt;ItemTemplate&gt;
      &lt;tr&gt;
        &lt;td&gt;&lt;%# Eval("T") %&gt;&lt;/td&gt;
        &lt;td&gt;&lt;%# Eval("L")%&gt;&lt;/td&gt;
        &lt;td&gt;&lt;%# Eval("S")%&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/ItemTemplate&gt;
    &lt;FooterTemplate&gt;
      &lt;/tbody&gt;
      &lt;/table&gt;
    &lt;/FooterTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>But on the back end I don't know how to actually bind the data.  If there is a tutorial someone can send me to follow for this part I'd appreciate it or if you can explain that would be great.</p>
  
  <pre><code>public List&lt;Sample&gt; Results()
      {    
          List&lt;Sample&gt; List = new List&lt;Sample&gt;();    
          myList.Add(new Sample { Title = "Title   
  1", Link = "/item.aspx?id=1", Summary = "summary     
  for Item 1" });
  
          return List;
      }  
  
      public class Content
      {
          public string T
          {
              get;
              set;
          }
  
          public string L
          {
              get;
              set;
          }
  
          public string S
          {
              get;
              set;
          }
      }
  </code></pre>