Can I Use ASP.NET Wizard Control to Insert Data into Multiple Tables?
Posted
by SidC
on Stack Overflow
See other posts from Stack Overflow
or by SidC
Published on 2010-05-05T18:34:31Z
Indexed on
2010/05/05
18:38 UTC
Read the original article
Hit count: 299
asp.net-3.5
|stored-procedures
Hello All,
I have an ASP.NET 3.5 webforms project written in VB that involves a multi-table SQL Server insert. That is, I want the customer to input all their contact information, order details etc. into one control (thinking wizard control). Then, I want to call a stored procedure that does the insert into the respective database tables.
I'm familiar and comfortable with the ASP.NET wizard control. However, all the examples I've seen in my searches pertain to inserting data into one table.
Questions: 1. Given a typical order process - customer information, order information, order details - should a wizard control be used to insert data into multiple database tables? If not, what controls/workflow do you suggest? 2. I've set primary keys and indexes on my order details, orders and customers tables. Is there special stored procedure syntax to use to ensure that referential integrity is maintained through the insert process?
Thanks, Sid
© Stack Overflow or respective owner