<%# Eval("ptadstat").ToString() == "0" ? "<font color=#FF0000>锁定</font>" : Eval("ptadstat").ToString() == "1" ? "正常显示" : "<font color=#FF0000>已在首页显示</font>"%>
asp.net三元运算符嵌套用法
最新推荐文章于 2023-04-21 17:14:03 发布
<%# Eval("ptadstat").ToString() == "0" ? "<font color=#FF0000>锁定</font>" : Eval("ptadstat").ToString() == "1" ? "正常显示" : "<font color=#FF0000>已在首页显示</font>"%>