大家好我在Asp.net上创建了一个包含fonctionaliyu的应用程序,允许候选人通过表单注册某个东西,该实体在生成的视图中包含一个名为“Gender”的属性“i”就像这样;
@Html.Label("Male")@Html.RadioButtonFor(model => model.Gender, "Male")
@Html.Label("Female")@Html.RadioButtonFor(model => model.Gender, "Female")
@Html.ValidationMessageFor(model => model.Gender, "", new { @class = "text-danger" })
这是正确的方法吗?Plz需要帮助