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

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%? -