以前用<%# (int)DataBinder.Eval(Container.DataItem, "sex") == 1 ? "男" : "女" %>
现在更懒了select name,case sex when 1 then '男' when 0 then '女' when -1 then '不知' end as sex from student