定义一个枚举,来实现 [解决办法] 页面不好实现可在数据库中实现,用case when then 语句, case when lxid=1 then '月卡',when lxid=2 then '季卡',.......等等 end as lxid [解决办法]
在你的公共的模块定义一个 namespace XXX
{ public static class Common { public static string FormatCard(string code) { switch(code) { case "1": return "月卡"; case "2": return "季卡"; .... } } } } 然后在你的 要使用的aspx