Bind Child table data on View field- MVC ASP.Net
Posted
by Tassadaque
on Stack Overflow
See other posts from Stack Overflow
or by Tassadaque
Published on 2010-05-13T12:51:32Z
Indexed on
2010/05/13
12:54 UTC
Read the original article
Hit count: 209
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
© Stack Overflow or respective owner