以前用<%#(int)DataBinder.Eval(Container.DataItem,"sex");;==1?"男":"女"%>
现在更懒了
selectname,casesexwhen1then'男'when0then'女'; when -1 then '不知'; endassexfromstudent
以前用<%#(int)DataBinder.Eval(Container.DataItem,"sex");;==1?"男":"女"%>
现在更懒了
selectname,casesexwhen1then'男'when0then'女'; when -1 then '不知'; endassexfromstudent