eval判断语句

    <asp:Label ID="lblType" runat="server" Text='<%#Eval("flag").ToString()=="1"?"订单":"咨询" %>'></asp:Label>

原文地址:https://www.cnblogs.com/puzi0315/p/2603978.html