can't delete record when using objectdatasource and GridView

Discussion in 'ASP .Net' started by Rote Rote, Oct 1, 2007.

  1. Rote Rote

    Rote Rote Guest

    Hi Guys, I have a simple Edit,Update Gridview and i'm using
    ObjectDatasource with dataset generated and TableAdapters I can do an
    update no problem.
    But can't get my delete to work. When i look at the parameters sent to
    the store proc it all contains NULL.
    I came across a solution using setting DataKeyNames but i don't have a
    primary Key ID on the table.The parameters i have are
    theyear,themonth,code and i want to delete based on those paramters
    which i have in my
    DeleteParameters tag. How can i accomplish a delete in such sceanrio?
    Thanks in Advance




    *** Sent via Developersdex http://www.developersdex.com ***
     
    Rote Rote, Oct 1, 2007
    #1
    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. J055
    Replies:
    10
    Views:
    10,679
    chris22smith
    Mar 18, 2009
  2. rote
    Replies:
    1
    Views:
    400
  3. -_-
    Replies:
    0
    Views:
    1,391
  4. David Thielen

    ObjectDataSource method as another ObjectDataSource

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    248
    Steven Cheng[MSFT]
    Mar 23, 2006
  5. Sam

    Delete Record using checkbox in Gridview in c#

    Sam, Apr 25, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    193
Loading...

Share This Page