W
William Buchanan
Hi folks
Can anyone point me in the direction of any information on how to make a
data layer which will work with the new ASP.NET 2.0 data components
(GridView, etc)?
The reason I ask is because I want to have my data layer in a totally
separate assembly. However, this doesn't seem possible. Let me explain....
Every site which describes how to do this seems to follow the same pattern -
half the site talks about how data layers are great, etc. Then, when it
comes to an example, they drop an SQLDataSource or an ObjectDataSource
directly on the page. Am I missing something here - to me this isn't a data
layer.
Also, when you create a DataSet in an ASP.NET application, you get different
methods to that of a DataSet in a normal assembly. In fact, in an ASP.NET
DataSet you don't even get any C# code which means that you can't use it in
normal code (so you can't create a wrapper around it). It also means that
ASP.NET components won't work with an assembly DataSet (since it doesn't
generate Insert and Delete methods) - it only generates "GetData" and
"Update".
I think I am missing some chunk of information so would be great if you
could help!
Thanks
Will
Can anyone point me in the direction of any information on how to make a
data layer which will work with the new ASP.NET 2.0 data components
(GridView, etc)?
The reason I ask is because I want to have my data layer in a totally
separate assembly. However, this doesn't seem possible. Let me explain....
Every site which describes how to do this seems to follow the same pattern -
half the site talks about how data layers are great, etc. Then, when it
comes to an example, they drop an SQLDataSource or an ObjectDataSource
directly on the page. Am I missing something here - to me this isn't a data
layer.
Also, when you create a DataSet in an ASP.NET application, you get different
methods to that of a DataSet in a normal assembly. In fact, in an ASP.NET
DataSet you don't even get any C# code which means that you can't use it in
normal code (so you can't create a wrapper around it). It also means that
ASP.NET components won't work with an assembly DataSet (since it doesn't
generate Insert and Delete methods) - it only generates "GetData" and
"Update".
I think I am missing some chunk of information so would be great if you
could help!
Thanks
Will