The SqlDataSource Class is a part of System.Web Assembly and used by
data-bound controls in ASP.NET. SqlDataAdapter is a part of
System.Data and can be used in both - Windows and Web applications
> Is it correct to say that when you use ASP.NET you use SqlDataSource but
> when you use Windows forms you use SqlDataAdapter.
I don't use either. Instead, I use the same data abstraction layer (DAL) for
both. It's based (fairly loosely) on the the Microsoft DAAB:
http://msdn.microsoft.com/en-us/library/dd203144.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
> Is it correct to say that when you use ASP.NET you use SqlDataSource but
> when you use Windows forms you use SqlDataAdapter.
No. That is not it.
Look at this post and see if it helps:
http://tinyurl.com/y9qgkmk
peace and grace,
--
Gregory A. Beamer (MVP)
Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************