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
569 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now