Hello friends
Can anyone tell me the means by which I can populate a label or a datagrid by executing a selectcommand statement on the form of my webpage. And what is the best way to retrieve data from a SQL datasource, is it by using separate sqldatasources for each different parts of a page that requires different data from different tables in the same database or by using a tableadapter to retrieve the data for the best performance?
Thanks for replying for my previous questions. It was helpful and great in my program implementation.
Thank you
Hi
When you bind the sqldatasource to datagrid selectcommand will be automatically executed if you call databind().
As for difference of SqlDataSource and tableadapter it largely depends on the implementation you could take a look at:
DataSets vs. Collections
No comments:
Post a Comment