Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SqlDataSource

0 views
Skip to first unread message

Tony Johansson

unread,
Dec 14, 2009, 9:59:11 AM12/14/09
to
Hello!

Is it correct to say that when you use ASP.NET you use SqlDataSource but
when you use Windows forms you use SqlDataAdapter.

This question is just to understand the different pices of my learning of
ASP.NET.

//Tony


Alexey Smirnov

unread,
Dec 14, 2009, 10:29:40 AM12/14/09
to
On Dec 14, 3:59 pm, "Tony Johansson" <johansson.anders...@telia.com>
wrote:

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

Mark Rae [MVP]

unread,
Dec 14, 2009, 10:33:21 AM12/14/09
to
"Tony Johansson" <johansson...@telia.com> wrote in message
news:3psVm.13585$U5.2...@newsb.telia.net...

> 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

Gregory A. Beamer

unread,
Dec 14, 2009, 1:09:49 PM12/14/09
to
"Tony Johansson" <johansson...@telia.com> wrote in news:3psVm.13585
$U5.2...@newsb.telia.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! |
*******************************************

0 new messages