Bind Child table data on View field- MVC ASP.Net
- by Tassadaque
I have two tables Contact and Addresses. Addresses is the child table of Contact. When i create view for Contact. i also want to get addresses for user as many as user wants. For contact table i bind the textbox and add validation like this
<%= Html.TextBoxFor(model => model.ContactName) %>
<%= Html.ValidationMessageFor(model => model.ContactName) %>
Now my question is that how can i bind address field on create view screen.
Regards
Tassadaque