Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebServices ->insert, delete and edit

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I just created a Webservice and I have the following Webservices:

[WebMethod(Description = "Returns the table of Users as a DataSet")]
public UserListService.UserDataSet GetUserList()
{
UserDataAdapter.Fill(userDataSet1);
return userDataSet1;
}

[WebMethod(Description = "Updates changes made to the DataSet")]
public UserListService.UserDataSet UpdateUsers(UserListService.UserDataSet UserChanges)
{
if (UserChanges != null)
{
UserDataAdapter.Update(UserChanges);
return UserChanges;
}
else
{
return null;
}
}

Now, How would I go about creating the Insert, Edit and Delete commands or would I have to even bother? What I'm saying is, does the update command do all this for me? If not would someone be able to write a small Insert command for me so I have an idea how it looks?

BTW, I did this in .NET studio so all the parameters etc are already defined.(username, password, email).

Thnx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top