Is there a way to shorten the markup for this repeater? I am binding a DataTable to this repeater. It bothers me because ((System.Data.DataRowView)Container.DataItem) is repetitive and makes the markup less readable especially when you have more fields. I am using .Net 3.5 C# WebForms. MVC is not an option. Thanks.
<asp:Repeater ID="rDefinitions" runat="server">
<ItemTemplate>
<h3><%#((System.Data.DataRowView)Container.DataItem)["Name"]%></h3>
<p>Definition:
<%#((System.Data.DataRowView)Container.DataItem)["Definition"]%>
</p>
</ItemTemplate>
</asp:Repeater>