Hi,
Lets say I have a single object of type Car which I want to render as HTML:
class Car {
public int Wheels { get; set; }
public string Model { get; set; }
}
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:
<div>
Wheels: <%# (int)Eval("Wheels") %><br />
Model: <%# (string)Eval("Model") %>
</div>
Does anybody know about a control out there that does just that?
And I am not ready to switch to ASP.NET MVC just yet...
Thanks in advance, Jacob