Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > can't delete record when using objectdatasource and GridView

Reply
Thread Tools

can't delete record when using objectdatasource and GridView

 
 
Rote Rote
Guest
Posts: n/a
 
      10-01-2007
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 ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Record count required when using GridView and ObjectDataSource J055 ASP .Net 10 03-18-2009 10:57 AM
Can't do a delete when using Objectdatasource with a GridView rote ASP .Net 1 10-04-2007 07:48 AM
Using Single ObjectDataSource for GridView and DetailView ? Luqman ASP .Net 0 02-27-2007 10:27 AM
Delete Record using checkbox in Gridview in c# Sam ASP .Net Web Controls 0 04-25-2006 06:55 AM
ObjectDataSource method as another ObjectDataSource David Thielen ASP .Net Web Controls 3 03-23-2006 01:50 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57