Best Practices Question on using an ObjectDataSource in asp.net

Posted by Lill Lansey on Stack Overflow See other posts from Stack Overflow or by Lill Lansey
Published on 2010-03-17T19:51:20Z Indexed on 2010/03/17 20:11 UTC
Read the original article Hit count: 448

Asp.net, c#, vs2008, sqlserver 2005.

I am filling a DataTable in the data access layer with data from a sqlserver stored procedure.

Best Practices Question –

Is it ok to pass the DataTable to the business layer and use the DataTable from the business layer for an ObjectDataSource in the presentation layer,

or

Should I transfer the data in the data table into a List and use the List for an ObjectDataSource in the presentation layer?

If I should transfer the data to a List, should that be done in the data access layer or the business layer?

Does it make a difference if the data needs to be edited before being displayed?

© Stack Overflow or respective owner

Related posts about best-practices

Related posts about ASP.NET