<asp:Repeater> driving me crazy ..
I need to do
<ItemTemplate> <% if (Container.DataItem("property") == "test") {%> I show this HTML <% } else { %> I show this other HTML <% } %> </ItemTemplate>
But I canβt find a way to do this for me. Ternary is not suitable, because the amount of HTML is quite large, setting labels through the DataBind event is also not very good, since I will have to have large blocks of HTML in the code.
Of course, there is a way to do this ....
c # if-statement repeater
Monsters
source share