I am looking to create a custom statement similar to the following:
<%#((bool)Eval("inactive")) ? "<span style='color:red;font-weight:600;'>INACTIVE</span>" : "<span style='color:green;font-weight:600;'>ACTIVE</span>"%>
However, I need this statement to be able to handle 3 conditional statements.
So instead of using
<%#Eval("Program_Num") %>
I want it to output as follows:
- If Program_Num equals 1, then display X
- If Program_Num equals 2, then show Y
- If Program_Num equals 3, then display Z
I am willing to provide further clarification if needed. Thank you for your assistance.