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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -