Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Parent-Child relationships after validation

Status
Not open for further replies.

AppDev76

Programmer
Jun 8, 2004
65
US
Hi,
I'm designing an asp page for registration.
One parent can register many children.
Problem:
I want the parent to add all children and after he/she is done I want to insert them into the database all at once.
In other words I want the parent to go through a wizard of adding all children and then I hit a finish button, so I can avoid problems of incomplete registrations.
I'm looking for somthing like a temp table. I know this could be done with datasets and asp.net but I can't develope on asp.net

What should I do?

Thanks
 
Thanks for your quick reply,
If I use the session object I can't loop through the records. The only way would be to name each field in the sessoin like Child1FirstName,Child1LastName.... then Child2FirstName,Child2LastName...

Is there any way that I can add a recordset to the session object. I might be able to use arrays, but I'm not familiar with them and I don't know how difficult it will be.
So do you think arrays is my only option?

Thanks again for your help
 
Yup, you can create disconnected Recordset, attach it to Session object and use when necessary.

IMO array or Dictionary should do just fine. Recordset is somewhat more practical because it behaves like SQL table (has rows and named column).

Or maybe wizard is not necessary?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top