您好我在标签内部有条件语句的以下模板字段。我需要知道是否有某种方法可以做ElseIf或类似的东西?谁能帮我吗?谢谢!
<asp:TemplateField HeaderText="type">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("intSurvivorID") != null && Eval("intRepID") == null ? "Survivor" : ""%>'></asp:Label>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("intPhoneCallerID") != null ? "Unauthorized" : ""%>'></asp:Label>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("intSurvivorID") == null && Eval("intRepID") == null && Eval("intPhoneCallerID") == null ? "Energy Employee" : ""%>'></asp:Label>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("intRepID") != null && Eval("intSurvivorID") != null ? "Survivors Rep" : ""%>'></asp:Label>
<asp:Label ID="Label5" runat="server" Text='<%# Eval("intSurvivorID") == null && Eval("intRepID") == null ? "Representative" : ""%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>