title: Is there a way to data bind a single item without eg. a Repeater control?
body: <p>Lets say I have a single object of type Car which I want to render as HTML:</p>
  
  <pre><code>class Car {
    public int Wheels { get; set; }
    public string Model { get; set; }
  }
  </code></pre>
  
  <p>I don't want to use the ASP.NET Repeater or ListView controls to bind because it seems too verbose. I just have the one object. But I still want to be able to use the databinding syntax so I won't have to use Labels or Literals. Something like:</p>
  
  <pre><code>&lt;div&gt;
    Wheels: &lt;%# (int)Eval("Wheels") %&gt;&lt;br /&gt;
    Model: &lt;%# (string)Eval("Model") %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Does anybody know about a control out there that does just that?</p>
  
  <p>And I am not ready to switch to ASP.NET MVC just yet.</p>
  
  <hr>
  
  <p>Unfortunately, the DetailsView control doesn't satisfy my needs because it doesn't seem to support the template-style syntax that I am after. It, too, needs to be bound to a DataSource object of a kind.</p>
  
  <p>I liked better the solution Maxim and Torkel suggested. I will try to go for that.</p>