Solved

Urgent: How to delete a record from a Gridview, passing the UNID of the record to a WEB Service method

Posted on 2006-10-19
3
571 Views
Last Modified: 2008-02-07
I need some urgent help in ASP.NET/C# (VS 2005)

I have a gridview, I've created a template column, the column itself displays the word DELETE. I have a WEBService called deletePage(string unid). How do I pass the unid of the record into the WEBService when a user clicks on it?

Thanks
0
Comment
Question by:mousemat24
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
nauman_ahmed earned 500 total points
ID: 17766357
First you will need to generate the proxy class for your web service or in other words add reference to the web service in your project. Then on the Delete event, call the web service method to delete and rebind the grid.

--Nauman.
0
 

Author Comment

by:mousemat24
ID: 17766438
nauman_ahmed
I have a proxy class, but I dont know how to get the UNID of the record. This is what I have

TITLE    UPDATED BY     EDIT    DELETE  (Gridview1 columns)

In the delete column, I want to get the UNID of the record and pass that to a web service

hope that makes sense?
Thanks nauman_ahmed
0
 

Author Comment

by:mousemat24
ID: 17767328
Hi nauman_ahmed

I've got the delete to work, but I keep getting the following error

Deleting is not supported by ObjectDataSource 'objHandBook' unless the DeleteMethod is specified.

Any idea how I'm supposed to sort this out?

Thanks
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question