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.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
namespace IASTC_GAIHR
{
/// <summary>
/// Summary description for wsPerson.
/// </summary>
public class wsPerson : System.Web.Services.WebService
{
public wsPerson()
{
//CODEGEN: This call is required by the ASP.NET Web Services Designer
InitializeComponent();
}
[WebMethod]
public DataSet personList()
{
string commandString = "Select * from tr_prsn";
string connectionString = "provider=Microsoft.JET.OLEDB.4.0; "
+ "data source = c:\\Inetpub/wwwroot/IASTC_GAIHR/DB/StrawManDB.mdb";
OleDbDataAdapter wsDataAdapter = new
OleDbDataAdapter(commandString,connectionString);
DataSet dsWSDataSet = new DataSet();
wsDataAdapter.Fill(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!