首页 > Web开发 > 详细

mvc 扩展htmlhelper

时间:2016-03-02 13:07:03      阅读:188      评论:0      收藏:0      [点我收藏+]

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 "未知";
            }
        }
    }
}

mvc 扩展htmlhelper

原文:http://www.cnblogs.com/jinhaoObject/p/5234209.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!