SqlDataSource

  • Follow


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 


0
Reply Tony 12/14/2009 2:59:11 PM

On Dec 14, 3:59=A0pm, "Tony Johansson" <johansson.anders...@telia.com>
wrote:
> 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

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
0
Reply Alexey 12/14/2009 3:29:40 PM


"Tony Johansson" <johansson.andersson@telia.com> wrote in message 
news:3psVm.13585$U5.203274@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 

0
Reply Mark 12/14/2009 3:33:21 PM

"Tony Johansson" <johansson.andersson@telia.com> wrote in news:3psVm.13585
$U5.203274@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
Reply Gregory 12/14/2009 6:09:49 PM

3 Replies
191 Views

(page loaded in 0.082 seconds)

Similiar Articles:
















7/23/2012 4:38:37 AM


Reply: