I'm working on asp.net framework 4
I'm looking for a good example of the following case:
I have formview as master data it contains person data:
- person_data_id
- person_name
- age
- ......
The formview contains a datagrid as details data which are family members:
- family_member_id
- person_data_id
- name
- .......
I need to save the detail data to "DataTable"
Page has one insert
button, inserts both master and detail data to the sql server database.
I'm using linq to get data
I don't know how to create this relation in the page between formview
and datagrid
or how to save data to the database at once.