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
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