Exactly what i was thinking.. I know you must be getting to that point
of "what is up with this guy..." etc..
What i Have done is reubuilt the dataset I used to display within the
application.. now I know I should be able to reuse the original
dataset... (inheritance being the sexy thing about .net ).
But what i Have is as follows:
using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Data.Ole Db;
using System.Diagnost ics;
using System.Web;
using System.Web.Serv ices;
namespace IASTC_GAIHR
{
/// <summary>
/// Summary description for wsPerson.
/// </summary>
public class wsPerson : System.Web.Serv ices.WebService
{
public wsPerson()
{
//CODEGEN: This call is required by the ASP.NET Web Services Designer
InitializeCompo nent();
}
[WebMethod]
public DataSet personList()
{
string commandString = "Select * from tr_prsn";
string connectionStrin g = "provider=Micro soft.JET.OLEDB. 4.0; "
+ "data source = c:\\Inetpub/wwwroot/IASTC_GAIHR/DB/StrawManDB.mdb" ;
OleDbDataAdapte r wsDataAdapter = new
OleDbDataAdapte r(commandString ,connectionStri ng);
DataSet dsWSDataSet = new DataSet();
wsDataAdapter.F ill(dsWSDataSet ,"Persons");
}
Right now I am getting ablue squiggly under the personlist saying "Not
all code paths return a value:" presumably this is talking about the
fact htat i am not retuning anything to the caller of the method
(class?).. thanks again for your help
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!