通过枚举,在前台显示想要的数据 public static class test{ public enum t { aaa=1, bbb=2, }}cs中,int t是我从数据库拿到的值public string a(int t){ return ??? ;//这里怎么写?还是foreach?}在前台,我希望<%=a%>可以显示aaa或bbb应该怎么写?谢谢~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 protected string GetEnumName(int s) string str=Enum.GetName(typeof(t), s); return str;} public string a(int x) { return ((t)x).ToString(); } 双网卡同时工作,内外网一并访问 ASP.NET 问题。 怎样把menu都改成横向的? ASP.NET显示SQL数据库的表结构!急 ASP网站转成asp.net sql匹配过程的问题--超难[急] 请问vs2003只装asp.net和c#有多大啊? Textbox,控件问题。我该怎么办? datagrid如何动态获取宽度、高度? listbox问题 菜鸟提问:如何设置一个按钮一天内只能点击一次啊 如何把字符串数字 转换为 数字数组?
}
{
return ((t)x).ToString();
}