Home All Groups Group Topic Archive Search About

updating multiple tables from a formView

Author
8 Mar 2006 4:40 PM
John Hopper
Since there is one datasource for a formView control, and one sql update
statement for the datasource, how can I update my normalized database (with 2
tables furnishing the data for the formView) since sqlServer doesn't allow
update statements with more than one table?

Thanks for any suggestions

Author
8 Mar 2006 4:59 PM
Phillip Williams
Instead of using sqlDataSource use an ObjectDataSource whose UpdateMethod
would execute  SQlCommands to update more than one table.  For samples on
using objectDataSource with Business Logic Layer you may refer to the Quick
Start Tutorials http://www.asp.net/QuickStart/aspnet/doc/data/objects.aspx#bll

Show quoteHide quote
"John Hopper" wrote:

> Since there is one datasource for a formView control, and one sql update
> statement for the datasource, how can I update my normalized database (with 2
> tables furnishing the data for the formView) since sqlServer doesn't allow
> update statements with more than one table?
>
> Thanks for any suggestions