Answer the question
In order to leave comments, you need to log in
How to solve problems with binding?
There is a model:
[Bind]
public class Person
{
[ScaffoldColumn(false)]
public int Id { get; set; }
[Required]
[Display(Name = "Фамилия")]
public string LastName { get; set; }
[Required]
[Display(Name = "Имя")]
public string FirstName { get; set; }
[Required]
[Display(Name = "Отчество")]
public string MiddleName { get; set; }
[Required]
[Display(Name = "Возраст")]
public int Age { get; set; }
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question