HtmlHelper类中的扩展方法
@Html.TextBoxFor(c => c.Name, new { @class="red" })
@Html.DropDownListFor(c => c.GroupId, ViewData["slist"] as SelectList)
@Html.CheckBoxFor(c=>c.IsKill)
@Html.TextAreaFor(c=>c.Name)
@Html.TextBox("id1", Model.ID, new { @class = "green", style = "font-size:18px" });
@Html.DropDownList("gid", ViewData["slist"] as SelectList)
@Html.CheckBox("IsKill", Model.IsKill);
@Html.Hidden("ID", Model.ID)
@Html.ListBox("type", ViewData["slist"] as SelectList)
@Html.RadioButton("type1", "1", true)
@Html.RadioButton("type1", "2", false)