title: ASP.NET get related object through bind
body: <p>I have the following class in C#:</p>
  
  <pre><code>public class Client
  {
      public string name{get;set;}
      public User user{get;set;}
  }
  </code></pre>
  
  <p>and the class:</p>
  
  <pre><code>public class User
  {
      public string email{get;set;}
  }
  </code></pre>
  
  <p>I access all the objects of Client through a data source, and I am displaying the info through a data list. How do I display <code>Client.user.email</code>?</p>
  
  <p>Thanks</p>
  
  <p>EDIT:</p>
  
  <p>To clarify, these classes are just an example. All the fields are actually public with set and get.</p>
  
  <p>The question is, I have <code>&lt;%# Eval("user") %&gt;</code> how do I access <code>&lt;%# Eval("user.email") %&gt;</code></p>
  
  <p>Edit:</p>
  
  <p>I am loading my data with Entity Framework. All the objects are being received with a web service</p>