asp.net - How to access to the elements properties inside a Repeater? -
I have an repeat control, whose data is source with typed object list And in the inline code I want to access my element properties within the ItemTemplate tag. I tried it with eval expression but it does not work:
& gt; Item Theme & gt; & Lt; TR & gt; & Lt; Td> & Lt;% # Eval ("code")%> & Lt; / Td> & Lt; Td> & Lt;% # Eval ("Details")% & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; / ItemTemplate & gt; Any ideas? Thanks!
You can use: & lt;% # DataBinder.Eval (container.datetime , "Field name")%>
Comments
Post a Comment