Elliot said:
Taco:
If I can expand some more on what Jim suggested - Microsoft Data Access
Blocks can provide you with a ready made, object oriented method of data
access.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daab-rm.asp
No you can't expand, this is a one-reply newsgroup
just
kidding...btw, keep in mind namespaces, something VB.NET developers may
not pay attention to or think of as much as us C# people (especially as
a beginner). If the class you create is in a different namespace, you
need to add an Imports statement at the top of your Page that is using it.
Namespaces are basically a way of grouping classes together....it's like
a label for them. It may or may not correspond to a whole project/dll,
more often not, it's more of a logical grouping.
So let's say my project is called tester. C# (and VB.NET) by default
make this the namespace of anything you create in this proj. But more
often than not, something like what you want, I would like to put that
class in a namespace called tester.dataaccess as a simple example, a
namespace I would put all data access related classes. I could declare
that namespace in my data class file (.vb or .cs), then any Page in the
tester namespace would need to add:
Imports tester.dataaccess
before using it inside, assuming they don't alter their
namespace.....now with VB.NET you somewhat rarely see namespaces; in
fact it's not really declared by VS.NET in your Page or class, e.g. In
the project properties it sets what the default namespace is and then if
your class or Page doesn't declare one, it gets that one (tester in my
example). And the IDE doesn't insert it in your code usually (whereas
VS.NET always puts it in my C# classes).....so VB.NET developers don't
'see them' as much as for simplicity, they have this default set in the
project properties....
and thank you for tuning in to my Namespace 101 lecture according to
Craig....just wanted to explain if you're really new to .NET....it's
really a simple concept that helps organize your classes....