DataSets in Web app

W

William Buchanan

Hi folks

I'm trying to do something that I knew how to do in .NET 1.1, but have got a
bit lost on 2.0.

I have an ASP.NET 2.0 web site which uses an assembly containing a DataSet
which has several TableAdapters. One of the TableAdapters returns a list of
companies along with their ID's.

I want to use this assembly in a web service. So, I have dragged the DataSet
and the TableAdapter from the tool box onto my web service and made the
following method:

[WebMethod]
public MyDataSet CompanyList()
{
myTableAdapter.Fill(myDataSet.CompanyList);
return myDataSet;
}

Firstly, is this the right way to do it?
Secondly, how do I use this in a combo box on a client Windows Forms
application? I made a web reference but not sure where to go from here as
none of the properties available to me seem to make any sense!!

Regards

Will
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top