我的模型
public class RegisterViewModel
{
[Required]
[Display(Name = "User name222")]
public string UserName { get; set; }
}
我的看法是
@Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })
这是显示用户名,而不是用户name222
和中的ErrorMessage显示用户name222字段是必需的。
And the ErrorMessage display "The User name222 field is required."
============================================== 所有code是VS14 CTP2 Asp.net Vnext Web应用程序自动生成。
============================================== All the code is VS14 CTP2 Asp.net Vnext Web Application automatic generation.
为什么?如何解决?
这个问题正在跟踪< /一>,它正在处理,因为我们说话。
This issue is being tracked and it is being addressed as we speak.
谢谢, Kirthi
Thanks, Kirthi