mellenburg
Programmer
I’m trying to design a data entry form in ASP.Net using c#. The database is a relational database. There are two tables, a travel events table and a travelers table. There can be multiple travelers per travel event, there’s a one to many relationship between those tables. I have created a dataset and added a table adapter for the events table. I’m not sure how to approach the travelers table. I’ve created a datagrid to hold the traveler information. However, I’m not sure how to allow the user to enter new travelers. I can’t write the travelers to the data table because I will not have written the parent record yet. How can I store the traveler information and then write it to the Traveler table once all information has been entered into the form? Has anyone created a similar application and have sample code I can view?
Matt
Matt