Formview delete doesn't work bound to a class

Discussion in 'ASP .Net Web Controls' started by Joe, Nov 14, 2007.

  1. Joe

    Joe Guest

    I created a data access class with get, insert, update and delete
    methods. I have an object datasource bound to the class and a
    formview bound to the datasource. The get, insert, and updates work
    fine, but I can't get the delete to work. It does not pass any values
    to the method for some reason. Doe anyone have any ideas what I might
    be missing?
    Joe, Nov 14, 2007
    #1
    1. Advertising

  2. Joe

    Phil H Guest

    On 14 Nov, 21:33, Joe <> wrote:
    > I created a data access class with get, insert, update and delete
    > methods. I have an object datasource bound to the class and a
    > formview bound to the datasource. The get, insert, and updates work
    > fine, but I can't get the delete to work. It does not pass any values
    > to the method for some reason. Doe anyone have any ideas what I might
    > be missing?


    Have you set the DataKeyNames property?
    Phil H, Nov 17, 2007
    #2
    1. Advertising

  3. Joe

    Joe Guest

    On Nov 17, 9:14 am, Phil H <> wrote:

    > Have you set the DataKeyNames property?


    I tried that and then I get the message that it can't find a delete
    method with whatever parameters.
    Joe, Nov 19, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9obiBCYWlsZXk=?=

    FormView and ObjectDataSource - Delete doesn't work

    =?Utf-8?B?Sm9obiBCYWlsZXk=?=, Jun 3, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    4,358
    =?Utf-8?B?Sm9obiBCYWlsZXk=?=
    Jun 3, 2005
  2. Stuart Ferguson
    Replies:
    1
    Views:
    4,988
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Apr 3, 2006
  3. sunil panda

    Lower bound & Upper bound

    sunil panda, Dec 25, 2003, in forum: Java
    Replies:
    9
    Views:
    7,233
    thushara wijeratna
    Oct 7, 2008
  4. Rhiner Dan
    Replies:
    1
    Views:
    742
    Mike Wahler
    Mar 27, 2005
  5. Fred Zolar
    Replies:
    0
    Views:
    221
    Fred Zolar
    Apr 1, 2004
Loading...

Share This Page