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" })

MVC4下拉少数名族的更多相关文章

  1. DevExpress:下拉框绑定数据源 (ComboBoxEdit,LookUpEdit)

    DevExpress:下拉框绑定数据源 (ComboBoxEdit,LookUpEdit) DevExpress:下拉框绑定数据源 (ComboBoxEdit,LookUpEdit) // 设置下拉框 ...

  2. asp.net MVC4 表单 - 下拉框

    1.下拉框代码方式 控制器内构建下拉项目: List<SelectListItem> list = new List<SelectListItem>(); list.Add(n ...

  3. 基于jQuery的input输入框下拉提示层(自动邮箱后缀名)

    基于jQuery的input输入框下拉提示层,方便用户输入邮箱时的提示信息,需要的朋友可以参考下     效果图   // JavaScript Document (function($){ $.fn ...

  4. EF5+MVC4系列(7) 后台SelectListItem传值给前台显示Select下拉框;后台Action接收浏览器传值的4种方式; 后台Action向前台View视图传递数据的四种方式(ViewDate,TempDate,ViewBag,Model (实际是ViewDate.Model传值))

    一:后台使用SelectListItem 传值给前台显示Select下拉框 我们先来看数据库的订单表,里面有3条订单,他们的用户id对应了 UserInfo用户表的数据,现在我们要做的是添加一个Ord ...

  5. MVC4 绑定下拉框方法,解决编辑时不绑定值

    方法一  Controller 部分代码: public ActionResult Modify(int id) { //3.1.1 检查id //3.1.2根据id查询数据 Models.Stude ...

  6. smarty模板做人员表信息删除,修改 里面的性别单选按钮民族下拉,另外登录进去可以显示姓名

    首先登录进去可以显示姓名 smarty模板做人员表信息删除,删除的时候有提示框确定删除吗. 修改 里面的性别单选按钮,要修改谁有默认选中,用了变量调节器 民族位置做下拉,用<{foreach}& ...

  7. Jquery制作--美化下拉框

    平常我们用的原生select下拉框,大部分样式没办法修改,导致在不同的浏览器里面会跟设计图的风格大相径庭.所以为了能让它美化起来,就用JQ模拟了一个下拉框,可以随意定义样式.原生的下拉框也保留在div ...

  8. Android开发学习之路-下拉刷新怎么做?

    因为最近的开发涉及到了网络读取数据,那么自然少不了的就是下拉刷新的功能,搜索的方法一般是自己去自定义ListView或者RecyclerView来重写OnTouch或者OnScroll方法来实现手势的 ...

  9. jQuery打造智能提示插件二(可编辑下拉框)

    在上一篇 jQuery打造智能提示插件 上改进,增加下拉按钮,修复点击下拉区域外不隐藏BUG 效果 下拉按钮素材: js封装,注意红色部分为BUG修复,然后传入boxwidth不带px: /* /// ...

随机推荐

  1. Qt配置信息设置(QSettings在不同平台下的使用路径)

    在Windows操作系统中,大多把配置文件信息写在注册表当中,或写在*.ini文件中,对于这两种操作都有相应的Windows API函数,在以前的文章中都提及过,这里就不多说了~ 在Qt中,提供了一个 ...

  2. 探讨mvc下linq多表查询使用viewModel的问题

    最近在开发mvc3的时候发现了一个问题,就是如何在view页面显示多表查询的数据,最简单的办法就是使用viewmodel了,以下本人使用viewmodel来实现多表查询的3中方法, 先贴代码再说: 1 ...

  3. hdu1045 Fire Net

    在一张地图上建立碉堡(X),要求每行没列不能放两个,除非中间有强挡着.求最多能放多少个碉堡 #include<iostream> #include<cstdio> #inclu ...

  4. The Simplified Project Management Process

    One of the challenges of explaining project management to people who are unfamiliar with the approac ...

  5. Insecure world writable dir /usr/local in PATH, mode 040777

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfi ...

  6. iOS UIApplicationDelegate

    1.- (void)applicationWillResignActive:(UIApplication *)application说明:当应用程序将要入非活动状态执行,在此期间,应用程序不接收消息或 ...

  7. opengl 3.3 tutorial

    http://www.mbsoftworks.sk/index.php?page=tutorials&series=1

  8. APICloud请你看英特尔智能硬件大赛决赛直播

    英特尔智能硬件大赛由英特尔硬享公社(CCE)发起,联合了全国各地50余家产业链优秀合作伙伴,旨在集合全国硬创资源,携手寻找中国最具代表性的硬件创业项目,并通过技术支持.资源对接.产品推广等方式助力项目 ...

  9. Java final,static 关键字

    final关键字: 这是无法改变的”或者“终态的”含义,它可以修饰非抽象类.非抽象类成员方法和变量. final类不能被继承,没有子类,final类中的方法默认是final的.final方法不能被子类 ...

  10. 第九篇 Integration Services:控制流任务错误

    本篇文章是Integration Services系列的第九篇,详细内容请参考原文. 简介在前面三篇文章,我们创建了一个新的SSIS包,学习了脚本任务和优先约束,并检查包的MaxConcurrentE ...