为什么不对在aspx页面switch?
其实可以写到SQL语句里的,如下:
select *, BrandSort=
case
when sort=0 then '标准滤棒'
when sort=1 then '同心滤棒'
when sort=2 then '沟槽滤棒'
when sort=3 then '星形滤棒'
when sort=4 then '心形滤棒'
when sort=5 then '异形滤棒'
when sort=6 then '香线滤棒'
when sort=7 then '多边形滤棒'
else 'ccc'
end
from dt
aspx页面绑定 BrandSort就可以了