首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏技术博客

    一步一步学Linq to sql(三):增删查改

    @Html.Label("是否需要回复") 是 @Html.RadioButtonFor (c=>c.IsRequired, 1, true)  否 @Html.RadioButtonFor(c => c.IsRequired, 0, false)

    1.4K20发布于 2018-09-11
  • 来自专栏奔跑的人生

    VS2010+EF Code First 4.1学习MVC3(三)

    ViewBag.CategoryList) 20

    21
    22 @Html.Label("文章状态:") 23 @Html.RadioButtonFor (a => a.ArticleStatus, true)正常 24 @Html.RadioButtonFor(a => a.ArticleStatus, false)禁止 25

    77220发布于 2019-09-10
  • 来自专栏浩Coding

    ASP.NET MVC5高级编程——(4)表单和HTML辅助方法

    等效的HTML: <input id="color" name="color" type="radio" value="red" /> Html.RadioButton有一个强类型的对应方法Html.RadioButtonFor 强类型方法不使用名称和值,而是用表达式来标识那些包含有要渲染属性的对象,当用户选择单选按钮时,后面会跟要提交的值: @Html.RadioButtonFor(m => m.GenreId, "1") Rock

    4.3K31发布于 2019-07-03
  • 来自专栏喵叔's 专栏

    【ASP.NET Core 基础知识】--MVC框架--Views和Razor语法

    @Html.CheckBoxFor(model => model.IsAdmin) @Html.CheckBox("isAdmin", true) Html.RadioButtonFor 和 Html.RadioButton @Html.RadioButtonFor(model => model.Gender, "Male") Male @Html.RadioButton("gender", "Female", true)

    7.2K20编辑于 2024-01-11
领券