Vote count:
1
I'm trying to make a ternary conditional statement using eval. However I do not know how to make it since I need to output an asp link or an asp label.
This is my unfinished ternary condition:
<%# Eval("TaggedActive") == 0 ? %>
// <asp:LinkButton Text="Button" OnClick="function" runat="server" />
<%# : %>
// <asp:Label Text="Already Clicked" runat="server" />
How do I write my condition?
asked 9 mins ago
ternary conditonal statements using eval
Aucun commentaire:
Enregistrer un commentaire