Hello,
My question is about asp.net MVC:
my problem is when i Submit in Index View My Address from Partial view is null...this is my code:
I have a Person Class :
public class Person
{
public Person()
{
Address = new Address();
}
public int Id { get; set; }
public string Name { get; set; }
public string Family { get; set; }
public Address Address { get; set; }
}
and Address class :
public class Address
{
public string City { get; set; }
public string Street { get; set; }
}
I was Created an Index view such this. In my view there is a partial view :
@using (Html.BeginForm("Index", "Home"))
{
<label>Name: </label>
@Html.EditorFor(m => m.Name)
<label& ...
Go to the complete details ...