您的位置:首页 > Web前端 > HTML

mvc 扩展htmlhelper

2016-03-02 11:21 246 查看
using System.Web.Mvc;

namespace System.Web.Mvc
{
public static class HtmlExtend
{
public static string IsDelete(this HtmlHelper helper, int? txt)
{
switch (txt)
{
case 0: { return "可用"; }
case 1: { return "不可用"; }
default:
return "未知";
}
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: