• MVC4下拉少数名族


      List<SelectListItem> nationlist = new List<SelectListItem>()
                {
                    new SelectListItem(){Value="汉族",Text="汉族"},
                    new SelectListItem(){Value="土家族",Text="土家族"},
                    new SelectListItem(){Value="蒙古族",Text="蒙古族"},
                    new SelectListItem(){Value="回族",Text="回族"},
                    new SelectListItem(){Value="苗族",Text="苗族"},
                    new SelectListItem(){Value="傣族",Text="傣族"},
                    new SelectListItem(){Value="僳僳族",Text="僳僳族"},
                    new SelectListItem(){Value="藏族",Text="藏族"},
                    new SelectListItem(){Value="壮族",Text="壮族"},
                    new SelectListItem(){Value="朝鲜族",Text="朝鲜族"},
                    new SelectListItem(){Value="高山族",Text="高山族"},
                    new SelectListItem(){Value="纳西族",Text="纳西族"},
                    new SelectListItem(){Value="布朗族",Text="布朗族"},
                    new SelectListItem(){Value="阿昌族",Text="阿昌族"},
                    new SelectListItem(){Value="怒族",Text="怒族"},
                    new SelectListItem(){Value="鄂温克族",Text="鄂温克族"},
                    new SelectListItem(){Value="鄂伦春族",Text="鄂伦春族"},
                    new SelectListItem(){Value="赫哲族",Text="赫哲族"},
                    new SelectListItem(){Value="门巴族",Text="门巴族"},
                    new SelectListItem(){Value="白族",Text="白族"},
                    new SelectListItem(){Value="保安族",Text="保安族"},
                    new SelectListItem(){Value="布依族",Text="布依族"},
                    new SelectListItem(){Value="达斡尔族",Text="达斡尔族"},
                    new SelectListItem(){Value="德昂族",Text="德昂族"},
                    new SelectListItem(){Value="东乡族",Text="东乡族"},
                    new SelectListItem(){Value="侗族",Text="侗族"},
                    new SelectListItem(){Value="独龙族",Text="独龙族"},
                    new SelectListItem(){Value="俄罗斯族",Text="俄罗斯族"},
                    new SelectListItem(){Value="哈尼族",Text="哈尼族"},
                    new SelectListItem(){Value="哈萨克族",Text="哈萨克族"},
                    new SelectListItem(){Value="基诺族",Text="基诺族"},
                    new SelectListItem(){Value="京族",Text="京族"},
                    new SelectListItem(){Value="景颇族",Text="景颇族"},
                    new SelectListItem(){Value="柯尔克孜族",Text="柯尔克孜族"},
                    new SelectListItem(){Value="拉祜族",Text="拉祜族"},
                    new SelectListItem(){Value="黎族",Text="黎族"},
                    new SelectListItem(){Value="畲族",Text="畲族"},
                    new SelectListItem(){Value="珞巴族",Text="珞巴族"},
                    new SelectListItem(){Value="满族",Text="满族"},
                    new SelectListItem(){Value="毛南族",Text="毛南族"},
                    new SelectListItem(){Value="仫佬族",Text="仫佬族"},
                    new SelectListItem(){Value="普米族",Text="普米族"},
                    new SelectListItem(){Value="羌族",Text="羌族"},
                    new SelectListItem(){Value="撒拉族",Text="撒拉族"},
                    new SelectListItem(){Value="水族",Text="水族"},
                    new SelectListItem(){Value="塔吉克族",Text="塔吉克族"},
                    new SelectListItem(){Value="塔塔尔族",Text="塔塔尔族"},
                    new SelectListItem(){Value="仡佬族",Text="仡佬族"},
                    new SelectListItem(){Value="土族",Text="土族"},
                    new SelectListItem(){Value="佤族",Text="佤族"},
                    new SelectListItem(){Value="维吾尔族",Text="维吾尔族"},
                    new SelectListItem(){Value="乌孜别克族",Text="乌孜别克族"},
                    new SelectListItem(){Value="锡伯族",Text="锡伯族"},
                    new SelectListItem(){Value="瑶族",Text="瑶族"},
                    new SelectListItem(){Value="裕固族",Text="裕固族"},
                    new SelectListItem(){Value="彝族",Text="彝族"}
                };
             ViewBag.NationName = new SelectList(nationlist, "Value", "Text", entity.NationName);
           ViewBag.NationName = new SelectList(nationlist, "Value", "Text");
              @Html.DropDownList("NationName", null, new { @class = "txtselect" })
  • 相关阅读:
    /etc/sysconfig/network-scripts/ifcfg-eth0
    虚拟机不能上网
    VMware3种网络模式
    SecureCRT学习之道:用SecureCRT来上传和下载数据
    SecureCRT学习之道:SecureCRT 常用技巧
    SecureCRT学习之道:SecureCRT常用快捷键设置与字体设置方法
    CentOS7 编译安装LNMP
    提高PHP编程效率的方法
    基于CentOS 5.4搭建nginx+php+spawn-fcgi+mysql高性能php平台
    Linux系统部署规范v1.0
  • 原文地址:https://www.cnblogs.com/yechangzhong-826217795/p/5391797.html
Copyright © 2020-2023  润新知