C# ASP.NET MVC.NET(非核心)表单字段未过帐

C# ASP.NET MVC.NET(非核心)表单字段未过帐,c#,asp.net-mvc,asp.net-mvc-5,C#,Asp.net Mvc,Asp.net Mvc 5,我想知道你们是否能帮我解决一个问题,我的ASP.NET MVC Razor表单似乎没有发布所有字段。下面您将找到发布到的razor代码和模型 现在的问题是,表单似乎没有发布所有字段。所涉及的字段是PhonePrefix和PhoneBase。以下是发布后的表单url编码字符串: 此外,以下是发布后收到的模型: 现在看看生成的HTML(如下)的源代码,我希望您能够看到每个有问题的字段都有一个名称字段,我相信您需要这个名称字段才能从表单中发布字段 我正在绞尽脑汁,任何帮助都会很好 更多信息: 赢得

我想知道你们是否能帮我解决一个问题,我的ASP.NET MVC Razor表单似乎没有发布所有字段。下面您将找到发布到的razor代码和模型

现在的问题是,表单似乎没有发布所有字段。所涉及的字段是
PhonePrefix
PhoneBase
。以下是发布后的表单url编码字符串:

此外,以下是发布后收到的模型:

现在看看生成的HTML(如下)的源代码,我希望您能够看到每个有问题的字段都有一个名称字段,我相信您需要这个名称字段才能从表单中发布字段

我正在绞尽脑汁,任何帮助都会很好

更多信息:
赢得10分
Visual Studio 10
IIS 10
.NET Framework 4.7.2


国家代码
+
电话号码
@使用(Html.BeginForm(“Create”、“User”、FormMethod.Post、new{id=“actionForm”、autocomplete=“off”}))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true,“,new{@class=“text danger”})
用户名*
@Html.EditorFor(model=>model.UserName,new{htmlAttributes=new{@class=“表单控制输入文本框”、@tabindex=“1”、autofocus=“autofocus”、@placeholder=“User name”、@autocomplete=“new UserName”})
@Html.ValidationMessageFor(model=>model.UserName,“,new{@class=“text danger”})
密码*
@Html.EditorFor(model=>model.Password,new{htmlAttributes=new{@class=“表单控制输入文本框”、@tabindex=“3”、@placeholder=“Password”、@autocomplete=“new Password”、@readonly=“readonly”、onfocus=“this.removeAttribute('readonly');”})
@Html.ValidationMessageFor(model=>model.Password,“,new{@class=“text danger”})
@labelDictionary[“DefaultHomePage”]
@Html.DropDownListFor(model=>model.LandingPage,ViewBag.LandingPage作为选择列表,“选择”+@labelDictionary[“DefaultHomePage”],新建{@class=“form control select2下拉框”,@tabindex=“5”})
@Html.ValidationMessageFor(model=>model.LandingPage,“,new{@class=“text danger”})
@labelDictionary[“时区”]
@Html.DropDownListFor(model=>model.TimeZone,ViewBag.TimeZone作为选择列表,“选择”+@labelDictionary[“TimeZone”],“新建{@class=”表单控件选择2下拉框“,@tabindex=“7”})
@Html.ValidationMessageFor(model=>model.TimeZone,“,new{@class=“text danger”})
@labelDictionary[“语言”]
@Html.DropDownListFor(model=>model.Language,ViewBag.Language作为选择列表,“选择”+@labelDictionary[“语言”],新建{@class=“表单控件选择2下拉框”,@tabindex=“9”})
@Html.ValidationMessageFor(model=>model.Language,“,new{@class=“text danger”})
Api消耗
@CheckBoxFor(model=>model.ApiConsume,新的{@class=“fancy checkbox float left checkbox size”})
@Html.ValidationMessageFor(model=>model.ApiConsume,“,new{@class=“text danger”})
电子邮件*
@Html.EditorFor(model=>model.Email,new{htmlAttributes=new{@class=“表单控制输入文本框”、@tabindex=“2”、@placeholder=“Email”}})
@Html.ValidationMessageFor(model=>model.Email,“,new{@class=“text danger”,autocomplete=“off”})
角色*
@Html.DropDownListFor(model=>model.RoleId,model.RoleList,“选择角色”,新建{@class=“form control select2下拉框”,@tabindex=“4”})
@Html.ValidationMessageFor(model=>model.RoleId,“,new{@class=“text danger”})
@labelDictionary[“用户状态”]*
@Html.DropDownListFor(model=>model.StatusId,model.StatusList,“选择”+@labelDictionary[“UserStatus”],新建{@class=“form control select2下拉框”,@tabindex=“6”})
@Html.ValidationMessageFor(model=>model.StatusId,“,new{@class=“text danger”})
@labelDictionary[“日期格式”]
@Html.DropDownListFor(model=>model.DateFormat,ViewBag.DateFormat作为SelectList,“选择”+@labelDictionary[“DateFormat”],新建{@class=“form control select2下拉框”,@tabindex=“8”})
@Html.ValidationMessageFor(model=>model.DateFormat,“,new{@class=“text danger”})
@labelDictionary[“单位”]
@Html.DropDownListFor(model=>model.Unit,ViewBag.Unit作为SelectList,新建{@class=“form control select2下拉框”,@tabindex=“8”})
@Html.ValidationMessageFor(model=>model.Unit,“,new{@class=“text danger”})