c# - Any way to shorten or simplify the item template markup for a repeater control? -
Is there a way to shorten markup for this repeater? I am compelling this repeater to bother me because this ((System.Data.DataRowView) container. Datetime is repetitive and makes markup less readable, especially when you have more fields. I have .NET 3.5 C # I'm using WebForms. MVC is not an option. Thank you.
gt; ItemTemplate & gt; & Lt; h3 & gt; & lt;% # ((System.Data.DataRowView) Container.DataItem) ["name"]%>
Definition: & Lt;% # ((System.Data.DataRowView) Contain R. DataTime) Simplified Data Binding Statement Presented With ASP.NET 2.0 ["Definition"]%> <> << p>
Comments
Post a Comment