binding to objects

G

Guest

Hi,
i am relatively new to dotnet and am working on a project that requires me
to bind to objects instead of datasets. The reason for this is that we are
using an OR mapper to generate these custom data objects.

I know that web controls can bind to any type of object as long as it
implements the IEnumerable interface. I have created a custom collection
class that inherits from HashTable. I can then bind collections to my web
controls.

My question is: Are certain collection classes better than others for this
type of thing? Should I continue using HashTable or would I be better off in
the long run manually building DataSet objects to work with?

Thanks in advance.
 
G

Guest

Hi,

It all depends upon your neccesssity. well Dataset in itself is a class and
implements some collections . Though DataSet offers some flexible benefits
and can be used in most of the instances. Depending on your requirement you
can use your own custom class. Pls keep the reusability and project scope in
your mind

Nishith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top