First, the template rendering

First, the template rendering

            string a = "a值", b = "b值";
            string res=a == b ? ("+" + "a:" + a+"+") : ("-" + "b:" + b+"-");


<%#Eval("CheckUserNickName").ToString() == "" ? "" : ("(" + Eval("CheckUserNickName")+")") %> 

 

Guess you like

Origin www.cnblogs.com/fger/p/11101953.html