Ask a Question related to ASP.NET Web Services, Design and Development.
-
Michael Coughlin #1
web service delete row WebMethod ?
Though I found web service examples for Edit, Get, Cancel & Update, I found none for Delete; so, I'm not sure what would be the proper way to make a delete row [WebMethod] in a web service. Looking at the Update [WebMethod], I thought it might go like this:
[WebMethod]
public dataSetName DeleteName(dataSetName NameDeleteRow)
{
// If there's a row to delete,
if (NameDeleteRow != null)
{
// pass the row-to-delete, as an argument to the dataAdapter.DeleteCommand
dataAdapterName.DeleteCommand(NameDeleteRow);
// However, the dataAdapter.DeleteCommand expects an = SQLcommand ... not exactly parallel syntax?
return NameDeleteRow;
}
else
{
return null;
}
}
Hmmm ??? Why would the dataAdapter.DeleteCommand syntax work differently than the dataAdapter.Update syntax ?
... and how SHOULD the Delete [WebMethod] be done ?
thanks,
Mike
Michael Coughlin Guest
-
Delete form - Post data to a table and delete uponsubmit.
I have a delete form that I'd like to post the data to a table (delete_pcn) and delete upon submit, so that all deletions may be kept track of in... -
Delete key doesn't delete when datagrid is bound to a disconnected table
(Re: WinForm Datagrid) I manually built a table instead of filling it from a datasource. I bound my datagrid to the table. The datagrid works great.... -
Overriding Serialize() for web service/WebMethod()
Well, I was successful in overriding the XmlSerializer.Serialize() method and control the output XML document by using the XmlAttributeOverrides... -
web service delete row WebMethod
Though I found web service examples for Edit, Get, Cancel & Update, I found none for Delete; so, I'm not sure what would be the proper way to make a... -
Newbie question: How do I delete a Web Service or Web Application
I tried using IIS MMC to delete a Web Service and Web Application, and I get an "Access denied". I even tried to stop the Default Web Site first....



Reply With Quote

